Related to another question I asked here [https://unix.stackexchange.com/questions/253932/rename-folder-with-odd-characters]I'm wondering if it's possible to bypass the normal rm/rmdir/unlink binaries and delete a file using another method.  Maybe say by finding out exactly where on the disk a file or folder resides, and writing different data to that location, wiping out the folder or file.  How would one go about doing that, and would it cause problems for the OS or filesystem?Or, is there a .. I hesitate to call it a file but an area of the disk that can be viewed and edited with a hex editor, say, to find and unlink the exact reference to this folder/file?  And then, is there a different way of doing that specific to HFS+ and/or OS X?EDIT1: I'm interested not in deleting the contents of a file here, I'm interested in removing a file and/or folder using methods outside of rm/unlink.  I'm not trying to get rid of data in a forensic sense, I'm trying to remove a folder that refuses to be removed (see question I linked to above).
How to delete, without rm/unlink
filesystems;osx
Editing a disk image is possible, but very risky. If you have a suitable editor that can help you with this it would be worth making sure that you have a copy (written or otherwise) of the data you're changing.Most importantly, it must not be attempted without the disk being unmounted and not in use. If it's your boot/system disk that means you are going to have to use a separate mechanism to boot, such as a rescue disk.My preferred Linux-based Rescue CD is SystemRescueCD, but it's not certain that it contains HFS tools (the list of packages suggests it might). Here is another possible solution, using a standard Ubuntu installation disk, but it's from 2009 so it may well be extremely out of date.