Method: projects.instances.databases.dropDatabase Stay organized with collections Save and categorize content based on your preferences.
Drops (aka deletes) a Cloud Spanner database. Completed backups for the database will be retained according to theirexpireTime. Note: Cloud Spanner might continue to accept requests for a few seconds after the database has been deleted.
HTTP request
DELETE https://spanner.googleapis.com/v1/{database=projects/*/instances/*/databases/*}The URLs usegRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
database |
Required. The database to be dropped. Authorization requires the followingIAM permission on the specified resource
|
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/spanner.adminhttps://www.googleapis.com/auth/cloud-platform
For more information, see theAuthentication Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-12 UTC.