Docs: Remove Hasura Data

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8586
GitOrigin-RevId: ae9383fd10972d2b441f66b59a6ce5cb1c0ae7b3
This commit is contained in:
Sean Park-Ross 2023-04-11 14:03:18 +02:00 committed by hasura-bot
parent 3509ef8afc
commit 8849bc5f78

View File

@ -0,0 +1,32 @@
---
description: Remove Hasura data from a database
keywords:
- hasura
- docs
- deployment
- purge
- remove
sidebar_position: 130
sidebar_label: Remove Hasura Data
---
# Remove Hasura Data from a Database
Hasura saves two schemas in the database that you have designated to store metadata: `hdb_catalog` and `hdb_views`.
These schemas store metadata and track the state of your database.
If you want to remove Hasura from this database, you can use the following commands to drop these schemas using
either a database-management tool or the SQL editor - accessible in the sidebar of any table in the Hasura Console:
```sql
drop schema hdb_views cascade;
drop schema hdb_catalog cascade;
```
:::info Designated metadata database
Note that the database used to store metadata is designated with the
[`HASURA_GRAPHQL_METADATA_DATABASE_URL` environment variable or `--metadata-database-url` startup flag](/deployment/graphql-engine-flags/reference.mdx#metadata-database-url).
If this is not set, the metadata database will be the same as the database used for data.
:::