- Feb 9, 2019
Hi, im new on Mac, I deleted a folder and it got stocked on the trash can, I tried those commands using the temirnal but no success. It says that there's a file in use.
Important Question - Are you sure this was NOT one of the system folders? No system likes that and all systems will try to stop you. You simply may not have privileges high enough. Similar problem happened to me on Widows and I ended reformatting the hard drive.
If these are YOUR files: There are few more or less drastic methods which may help, but easiest and least dangerous may be restart computer in safe mode and try there. https://helpx.adobe.com/x-productkb/global/start-safe-boot-mode-mac.html
It should load minimum stuff in safe mode, so file may not be in use at that time. It is also worth checking the disk first from Disk Utility to make sure there are no underlying issues with the drive. And if nothing helps, it may be time to google the problem and follow some instructions. But when this happened to me in past, it was always challenge. Note, that when instructions tell you to become (and how) superuser in command line interface, you can do a LOT of damage quickly. Make VERY GOOD (and verified) backup first!
''0000'' is the folder name (it was my friend's name so I renamed it to ''0000'').That looks like privileges issue. You should not be deleting someone else' home folder. The way that is done is by deleting the user from User management interface - at which point their home folder should be deleted. I remember fighting with similar issue at some point but do not remember how I fixed it.
If this was not home folder, but arbitrary folder in the system folders, it's even more tricky and one needs to get the privileges right. But that should be doable as superuser from command line. One can do a lot of damage that way.