# Restore database (destructive) (/docs/rest-api/endpoints/databases/post-databases-by-target-database-id-restore) > For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL. **Destructive operation** — this immediately and irreversibly overwrites all data in the target database with the contents of the specified backup. Any data written since the backup was taken will be lost. Ensure you have a recent backup of the target database before proceeding. Replaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced. Location: REST API > Endpoints > Databases > Restore database (destructive) ## Related pages - [Create database](https://www.prisma.io/docs/rest-api/endpoints/databases/post-databases): Creates a new database in the specified project. `logicalId` cannot be combined with `branchGitName`; pass `branchId` instead. - [Create database](https://www.prisma.io/docs/rest-api/endpoints/databases/post-projects-by-project-id-databases): Creates a new database for the given project. - [Delete database](https://www.prisma.io/docs/rest-api/endpoints/databases/delete-databases-by-database-id): Deletes the database with the given ID. - [Get database](https://www.prisma.io/docs/rest-api/endpoints/databases/get-databases-by-database-id): Returns the database with the given ID. - [Get list of databases](https://www.prisma.io/docs/rest-api/endpoints/databases/get-projects-by-project-id-databases): Returns databases for the given project.