Delete Class from Database

Is there a way to delete a class from the database? I am implementing a cleanup script and I can only destroy records within a class, but I cannot delete the class itself as in the UI. Is there a way to programatically do it such as

Morals.Cloud.extend('TableName).delete()`

Also, Is there a way of listing classes in the database?

I don’t know how that could be done, you could search on google how to do it with parse server.
You could connect directly to mongo db and delete it, but you have to take care on what you delete that way.

1 Like