# Disable Extension (/postgres-clusters/Postgres_extensions_disable)

Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled.

`DELETE /v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions/{extension_name}`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `postgres_cluster_id` | path | `string` | Yes | Managed Postgres Cluster ID |
| `database_name` | path | `string` | Yes | Database Name |
| `extension_name` | path | `string` | Yes | Extension Name |
| `force` | query | `boolean` | No | Also drop objects that depend on the extension |

## Responses

| Status | Description | Schema |
| --- | --- | --- |
| `204` | No Content |  |
| `400` | 'System extensions cannot be disabled' or 'Database name is malformed' | `PostgresErrorResponse` |
| `404` | Cluster not found | `PostgresErrorResponse` |
| `422` | Invalid extension name | `PostgresErrorResponse` |

The full machine-readable OpenAPI spec is available at /openapi.json.