delete_database
Remove a database from Coolify's self-hosted PaaS by specifying its UUID. Includes optional confirmation parameter for safety when required.
Instructions
Delete a database. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Database UUID | |
| confirm | No | Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true) |
Implementation Reference
- src/tools/handlers.ts:399-401 (handler)The core handler logic for the 'delete_database' tool within the main tool switch statement. It validates the 'uuid' parameter and issues a DELETE request to the Coolify API endpoint `/databases/{uuid}`.case 'delete_database': requireParam(args, 'uuid'); return client.delete(`/databases/${args.uuid}`);
- src/tools/definitions.ts:1085-1096 (schema)The input schema and metadata definition for the 'delete_database' tool, specifying required 'uuid' parameter and optional 'confirm' for dangerous operations.{ name: 'delete_database', description: 'Delete a database. When COOLIFY_REQUIRE_CONFIRM=true, requires confirm: true parameter.', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Database UUID' }, confirm: { type: 'boolean', description: 'Confirm the dangerous operation (required when COOLIFY_REQUIRE_CONFIRM=true)' } }, required: ['uuid'] } },
- src/tools/definitions.ts:60-60 (registration)Registration of 'delete_database' as a dangerous operation requiring confirmation via the DANGEROUS_OPERATIONS array, which controls confirmation checks in the handler.'delete_database',
- src/tools/definitions.ts:82-82 (helper)Warning message defined for the 'delete_database' tool, displayed when confirmation is required.delete_database: 'This will permanently delete the database and all its data.',