Deleting files on a computer is a routine procedure that each of us goes through every day. You select the necessary files, and then either you simply drag and drop or send it to the trash via the context menu. It would seem that there may be difficulties here, but sometimes the system does not allow deleting files or the basket is simply not cleared. What to do in such cases?

Delete Secure Files in Empty Trash

First, you need to make sure that your account has administrator rights. Some system files are not allowed to delete to ordinary users, and also the computer administrator could prohibit deleting certain files on the computer. You can check user rights in System Settings -> Users and Groups.

How to Delete Secure Files in macOS?

Make sure that Current User has administrator rights.

How to Delete Secure Files in macOS?

Read more: How to Encrypt Folders with Password Protection in macOS?

Secondly, if the file is moved to the recycle bin, but when you try to empty the recycle bin, the message “The operation cannot be performed because the file name object is blocked” appears.

Next try emptying the recycle bin as follows:

  • Open Finder on the top control panel;
  • Select Finder -> Empty Trash.
How to Delete Secure Files in macOS?

If this does not help, then you need to make sure that the file you are trying to delete is not locked. To do this look the instructions below:

  • Select the problem file, right-click, select Get Info;
  • Here we can see “Locked” tick activated for file protection;
  • If there is a tick in front of the item, then remove it.
How to Delete Secure Files in macOS?

Delete Secure Files via Terminal

To do this, you will need to open the Terminal and print several of the following commands:

  • Deleting protected files use this syntax
srm -v
  • Delete protected directory
srm -rv
  • Open the required file or folder and drag it to the Terminal window;
srm -v /path/to/securely/file/to/delete
  • Make sure that the file path is correct and press “Enter”.

Conclusion

Now your shopping cart is empty? I really hope so! If you have gone through all the steps of management and have not received a result, then perhaps you have become a victim of a specific problem that requires a special approach, but in 99% of cases these methods help.

It’s the best time to ask questions and give us your feedback in comments.

Author

Hi there! My Name is Vincent Lago! My goal is to share insightful reviews, guides, and manuals for people looking to know more about current solutions for Apple hardware and OS. I have years of technological background knowledge including owning a custom iMacs & PCs which was using for different types of business. And now, I want to share my experience with you.

Write A Comment