Since the App Store seemed stuck with updating Xcode to 7.3, I have decided to delete it and reinstall. However, after moving Xcode to the Trash, it refused to be cleared and instead be stuck on the "Preparing to empty the trash..." window. So, I've decided to force empty the trash in Terminal by rm -rf ~/.Trash/*, only to get an endless loop of error message saying this:
rm: /Users/jordanchanph/.Trash/Xcode.app/Contents/.../IOCatalogue/reset.xml: Permission denied
How can I empty the trash?