Press and hold an item to bring up a context menu with a "delete" button.
Add .idea/libraries to .gitignore to prevent annoying changes.
Add delete/discard icon resources.