Write an article based on this summary:

Open the Terminal. Type cd and press Enter. Type cd ~/ followed by the file location and press Enter. Type rm followed by a space and the file name and press Enter. Type y and press Enter.
The Terminal has an icon that resembles a black screen with a text cursor. Use the following steps to open the Terminal on Mac: Click the Magnifying Glass icon in the upper-right corner. Type Terminal in the search bar. Click the Terminal icon. This navigates to the root directory on your computer. This navigates to the folder(s) the file is located in. Be sure to separate each folder with a "/". Make sure you use the correct capitalization. For example, "cd ~/documents" You can also type "ls" and press Enter to see a list of folders and files in the current directory. For example, "rm textfile.txt". This deletes the file. If the file name has spaces in it, place the file name in quotations (i.e rm "text file.txt") If the file is write-protected, you will need to confirm that you want to delete the file. To confirm, type "y" and press Enter. Alternatively, you can type "rm -f" followed by the file name to force delete the file name.