mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
Docs: Remove Hasura Data
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8586 GitOrigin-RevId: ae9383fd10972d2b441f66b59a6ce5cb1c0ae7b3
This commit is contained in:
parent
3509ef8afc
commit
8849bc5f78
32
docs/docs/deployment/remove.mdx
Normal file
32
docs/docs/deployment/remove.mdx
Normal 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.
|
||||
|
||||
:::
|
Loading…
Reference in New Issue
Block a user