How do you drop a Dgraph database?

Drop all data from Dgraph Ratel itself by navigating to the 'Schema' section and click 'Bulk Edit'. There it gives an option to Drop all data along with schema as a button 'Drop All'. Click 'Drop All' button, then enter 'DROP ALL' in the text box appeared in the pop-up and click 'Drop All' button. It removes all schemas and data


Unfortunatelly, currently there's only command for dropping both schema and all data. You'll have to use the following HTTP call (or use the query directly in Ratel dashboard, since it uses HTTP communication):

curl -X POST localhost:8080/alter -d '{"drop_all": true}'

There's also possibility to drop a predicate:

curl -X POST localhost:8080/alter -d '{"drop_attr": "your_predicate_name"}'