The answers above are really helpful but don't explain, how you would actually go about deleting the table manually.
Suppose you run a local default installation with sqlite, you can find your database at .tmp/data.db
. To connect to it, you will need a tool that you can get from sqlite directly:
https://sqlite.org/download.html
I guess you can add it to the PATH, but since I am a beginner and I just wanted it to work, i put the sqlite3.exe directly in the folder of the database and ran it.
- To open the database, I used
.open data.db
and tested it with .tables
which showed me all the tables that strapi created for me but didn't delete.
- To ensure that I found the right table (recipe-cuisine) i looked at the content using
.headers on
followed by SELECT * FROM "recipe-cuisine";
.
- I finally deleted the whole table using
DROP TABLE "recipe-cuisine";
.
There is an awesome documentation on how to do other operations here: https://www.sqlitetutorial.net/
I hope that helps other beginners who struggle to delete the tables. If anybody has suggestions or helpful links with more information, that would be great!