


#Finder items in use force empty trash software
:)ĭataVaults are folders to which neither the user nor third-party software has any access at all. Using enabled root account, tried to delete all users accounts Trashes folders. Some Mail.app settings in those profiles was locked by system.ĭeleting trash with privileged system access. It seems that you deleted profile data for some user accounts manually (not by user & group management). Trash without these 2 items replace the existing. Question 2: If I reinstall Mojave, will a fresh new empty. So, question 1: Is there anything else to try? Using Terminal to rm, results are either "Operation not permitted" or "Directory not empty". Use Cocktail (Mojave Edition) 12.2 to Force Empty the Trash. Recovery Disk boot and Empty Trash, then Repair Disk with Disk Utility, then Empty Trash.īoot from external USB drive (macOS 10.14.4) and Empty Trash, then Terminal rm command. Safe boot and Empty Trash, then Repair Disk with Disk Utility, then Empty Trash. With no success at emptying Trash, I've tried: The operation can’t be completed because the item “testuser” is in use. The operation can’t be completed because the item “testuseraccount” is in use. The operation can’t be completed because the item “Library” is in use.

The operation can’t be completed because the item “Containers” is in use. The operation can’t be completed because the item “” is in use. The operation can’t be completed because the item “Data” is in use. Finder errors (occur twice, for each of the 2 items) are: Two items in the Trash which I can't empty. If you need to know this name, you'll have to use popen() instead of system() and parse the return string from osascript.Running macOS 10.14.3 on a 2015 MacBook Pro. But, if a file of the same name already exists in the trash, then the deleted file will be renamed. Since osascript insists on printing status messages to the command line console, I've redirected its output to /dev/null.Multi-line scripts have to be sent as multiple -e command line options.Puts("Look in the trash folder for a file called " NAME) "osascript -e 'set theFile to POSIX file \"" PATH NAME "\"' " Here's a simple example: #include įputs("Can't create file " PATH NAME "\n", stderr) In C, you can use AppleScript to move files to the trash.
