I am trying to clear some internal storage i have in the emulated directory two identical folders one /0 and one /legacy both have exact same files can i delete one?
Those are called "links", very common in Linux operating systems.
Chances are, your files are actually in neither of those directories. On my phone, the actual mountpoint of the partition those files are on is
From there two links exist. One to
/storage/emulated/legacy and one to
emulated in the filename also suggests that both location are just, well, emulated.
This can vary from device to device, for example on an HTC I have here
/stoage/sdcard0 is just a link to
/storage/emulated/0 instead of the actual mountpoint.
That said: If you delete a file in one place, it's completely gone out of all two (or three) "places". The files have the same file sizes, but don't occupy twice the space on the partition. It is actually the same file. By that I mean it all points to the same place on the actual partition on your storage chip.
You can read more about links here.