Back

Clean the database in appwrite

  • 0
  • Self Hosted
  • Tools
Suiii
25 Dec, 2023, 06:21

we have been testing and want to start it clean for production

TL;DR
To clean the database in appwrite, you can delete the database and then redeploy using the Appwrite CLI. After deleting, give it some time for the deletes worker to complete before redeploying to ensure the data does not reappear. This process will clean up the database, including stats.
ideclon
25 Dec, 2023, 06:34

Redeploy with Appwrite CLI?

Suiii
25 Dec, 2023, 08:09

will it clean up the database , like stats,

Suiii
25 Dec, 2023, 08:10

simple word, drop the database

ideclon
25 Dec, 2023, 17:25

You could just delete the database, then redeploy from the CLI

ideclon
25 Dec, 2023, 17:26

A warning though - after deleting, you’ll have to leave it for a bit to let the deletes worker complete, otherwise when you redeploy the data will show back up.

Suiii
26 Dec, 2023, 01:58

what command to delete db?

ideclon
26 Dec, 2023, 02:49

You could just do it from the Console

Suiii
26 Dec, 2023, 02:51

okay right.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more