# DATABASE_DROP_FAILED

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

`vitehub database drop` or `vitehub database reset` cannot drop the tables. `error.why` has the reason, such as a remote database without `--remote`, missing credentials, or a database error. The drop runs in one transaction, so nothing was dropped.

## Source

`DATABASE_DROP_FAILED` belongs to the `database` package. Its catalog entry is in [`src/error-diagnostics.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/database/src/error-diagnostics.ts#L232). It is raised in [`src/cli.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/database/src/cli.ts#L469), [`src/cli.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/database/src/cli.ts#L505).

See [all Database diagnostics](https://vitehub.dev/docs/database/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/database.md)
- [Get started](https://vitehub.dev/raw/docs/database/get-started.md)
- [Configure](https://vitehub.dev/raw/docs/database/configure.md)
- [Server API](https://vitehub.dev/raw/docs/database/server-api.md)
- [Agent capability](https://vitehub.dev/raw/docs/database/agent-capability.md)
- [Hosts](https://vitehub.dev/raw/docs/database/hosts.md)
- [Limits and errors](https://vitehub.dev/raw/docs/database/limits-and-errors.md)

Next: [DATABASE_DROP_NOT_CONFIRMED](https://vitehub.dev/raw/docs/database/diagnostics/database_drop_not_confirmed.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
