You can also use the DBCleaner component which exists in the Forge. It uses the OutSystems Platform DBCleaner_API which was made specifically to allow you to safely remove attributes and entities no longer in use from your database.