---
title: "POST /v1beta/{+name}:undelete"
method: POST
path: "/v1beta/{+name}:undelete"
tags: ["projects"]
---

# POST /v1beta/{+name}:undelete

`POST /v1beta/{+name}:undelete`

Restores a DatabaseInstance that was previously marked to be deleted. After the delete method is used, DatabaseInstances are set to the DELETED state for 20 days, and will be purged within 30 days. Databases in the DELETED state can be undeleted without losing any data. This method may only be used on a DatabaseInstance in the DELETED state. Purged DatabaseInstances may not be recovered.

## Path parameters

- `name` string, required

## Request body

- UndeleteDatabaseInstanceRequest — The request sent to UndeleteDatabaseInstance method.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/firebasedatabase.md) · [All operations](https://skmtc.dev/google/apis/firebasedatabase/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/firebasedatabase/revisions/1b9d800679e0/schema)
