Warning this is permanent
You CANNOT RECOVER FILES with method. So you have a file that you don’t want anymore, you can skip the steps in the GUI (graphic user interface). In terminal it is one command, but there is no “Trashcan” you can recover from.
To do this open up terminal and type:
rm {file path of file you want to delete}
Or is this is not enough you can remove entire directories. “rm-r” stands for remove directory and the syntax looks like this:
rmdir {the file path itself}
Now before you even just play with this command, make sure you have a Time Machine back up. It’s always just good to have a Time Machine back up, but if you make a mistake with this command, a backup may be your only way to recover data.