- Improved error check in delete_trash.