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.
Make sure that Current User has administrator rights.
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.
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.
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
- Delete protected directory
- 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”.
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.