The operation can't be completed because the item is in use … im using Macos Mojave, and some of my Xcode files were locked i guess by the system. So i trashed them and now im not able to clean the Trash. Im getting annoying error The operation can't be completed because the item is in use … Rebooting in safe mode, disabling login items, fixing permissions on disk does not helped. How can i clean my trash?
Posting the OP’s solution:

The trash can be emptied using:

rm -rf ~/.Trash