Sometimes, when you try to move or delete a file/folder on a Mac, it says “The operation cannot be completed because the item is in use”. If you are certain that the item is NOT in use, then it got locked at some point and the app ended without unlocking it. To manually unlock a file:

chflags nouchg filename

or

chflags -R nouchg foldername