System Information
- Strapi Version: 3.6.5
- Operating System: Linux
- Database: MongoDB 4.0.10
- Node Version: 12.22.12
- NPM Version: 6.14.16
- Yarn Version:
Hello,
We have some collections types that are obsolete, and we would like to remove them.
But there is no delete button available in Strapi admin console.
What is the cleanest way to remove a collection type? Directly deleting it in the database?
Thanks
Delete them from your code by deleting the folders in strapi/src/api/.
Thanks for your replys.
My question was more related about deletion of existing Database collections.
For instance, let’s imagine we created a collection type Restaurant, and added some restaurants entries.
When we do not use this collection type anymore, we would the collections to be deleted.
On the next strapi start, strapi would regenerate the restaurant-table (if you do not delete it from the code).
Regarding the entries of restaurant in your database you can delete the table afterwards.