Skip to main content
Version: v24.1

Delete Database

To drop all data, you could send a DropAll request via /alter endpoint.

Alternatively, you could:

  • Shutdown Dgraph and wait for all writes to complete,
  • Delete (maybe do an export first) the p and w directories, then
  • Restart Dgraph.
warning

Always export your data before deleting the database to ensure you have a backup.