Remove database
remove_databaseRemove a project's managed Postgres database and unset DATABASE_URL: the app loses the database and all its data now. spawnpoint keeps it for 7 days, and a person who may delete the project (its owner; on a team, its builder or a team admin) can restore it from the project's Storage panel in the console; after that it is deleted for good. Even when the user asked for it, first reply telling them the app loses the data, ask them to confirm, and stop; call with confirm: true only after they answer yes. Without confirm the call refuses and nothing happens. The app restarts without the variable. To replace a leaked DATABASE_URL instead, use rotate_database_password. A protected project refuses it: only its owner turns protection off, on the project's page in the console, so relay the refusal instead of looking for another way.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "remove_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true only once the user, told what the tool's description says is lost, answered yes to that question. The request to remove it is not that yes: ask first, and stop | |
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| note | Yes | ||
| status | Yes | ||
| database | No | ||
| project_id | Yes |