use the 'cd' command to find the file
in the terminal you will start in your home directory. to move somewhere else on the hard drive, such as the applications folder, type 'cd /applications'.
use the 'ls' command to see each folder's content.
as an example, i created a folder called "deleteme" with a document inside called "document.rtf"
note: 'Shannon' is the name of my computer, yours will be whatever your computer is named. 'myaccount' will be your account name. type every command after the % sign.
so now i will type the following
[Shannon:~] myaccount% cd /applications/deleteme
terminal will return:
[Shannon:/applications/deleteme] myaccount%
to delete the document, i type the 'rm' command for "remove"
[Shannon:/applications/deleteme] myaccount% rm document.rtf
you can double check to make sure the item was deleted by typing 'ls'. if the file will not remove because you don't have permission, you will need to type the following as a sudo root user: this will ask for your administrator password immediately following the command:
[Shannon:/applications/deleteme] myaccount% sudo rm document.rtf
to remove that 'deleteme' directory, you need to use the 'rmdir' (remove directory) command. but first we need to move back one folder using 'cd ..'
[Shannon:/applications/deleteme] myaccount% cd ..
[Shannon:/applications] myaccount%
now i want to use the 'rmdir' command:
[Shannon:/applications] myaccount% rmdir deleteme
hope this works for you, but be careful with what you delete.