Permanently delete files on Mac Sierra

1137475 pts.
Tags:
Deleting files
Mac
I'm on Mac Sierra right now. What's the best way to delete files permanently? What should I do on my end? Is there a specific command I should use?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
rm -rf some_dir

-r “recursive”

-f “force” (suppress confirmation messages)

Alternatively, Navigate to directory (which needs to be deleted) and run this command:

rm -rf *

Would remove everything (folders & files) in the current directory.

But be careful! Only execute this command if you are absolutely sure, that you are in the right directory.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    Simply drag the file/ older to the trash bin and then press command + delete or option + command + delete. Also you can use command line like, rm -rf filename/directoryname. You can link here for more info: https://support.apple.com/kb/PH25075?locale=en_US
    137,090 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: