/projects/{project_id}/endpoints/{endpoint_id}Delete compute endpointDeletes the specified compute endpoint. A compute endpoint is a Neon compute instance. Deleting a compute endpoint drops existing network connections to the compute endpoint. The deletion is completed when the last operation in the chain finishes successfully.
An endpoint_id has an ep- prefix. For information about compute endpoints, see Manage computes.
Parameters
project_idstringpathrequiredThe Neon project ID
endpoint_idstringpathrequiredThe endpoint ID
Responses
allOf · 2 options
endpointobjectrequiredShow child attributes
autoscaling_limit_max_cunumberrequiredautoscaling_limit_min_cunumberrequiredbranch_idstringrequiredThe ID of the branch this compute endpoint belongs to.
compute_release_versionstringAttached compute's release version number.
created_atstring · date-timerequiredA timestamp indicating when the compute endpoint was created
creation_sourcestringrequiredThe compute endpoint creation source
current_statestringrequiredLifecycle state of the compute endpoint. `init`: being initialized. `active`: running and accepting connections. `idle`: suspended (scaled to zero).
disabledbooleanrequiredWhether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action.
hoststringrequiredThe hostname of the compute endpoint. This is the hostname specified when connecting to a Neon database.
idstringrequiredThe compute endpoint ID. Compute endpoint IDs have an `ep-` prefix. For example: `ep-little-smoke-851426`
last_activestring · date-timeA timestamp indicating when the compute endpoint was last active
namestringOptional name of the compute endpoint
passwordless_accessbooleanrequiredWhether to permit passwordless access to the compute endpoint
pending_statestringLifecycle state of the compute endpoint. `init`: being initialized. `active`: running and accepting connections. `idle`: suspended (scaled to zero).
pooler_enabledbooleanrequiredDeprecated. To use connection pooling, append `-pooler` to the endpoint ID in the connection string.
pooler_modestringrequiredDeprecated. The connection pooler mode. Neon supports PgBouncer in `transaction` mode only. Removal scheduled for June 20, 2026.
project_idstringrequiredThe ID of the project this compute endpoint belongs to.
provisionerstringrequiredproxy_hoststringrequiredDeprecated. Use the `host` property instead.
region_idstringrequiredCloud region where the resource's Postgres compute and storage reside (for example, `aws-us-east-1`). Valid values are returned by `GET /regions`.
settingsobjectrequiredA collection of settings for a compute endpoint
Show child attributes
pg_settingsobjectA raw representation of Postgres settings
pgbouncer_settingsobjectDeprecated. A raw representation of PgBouncer settings. Removal scheduled for June 20, 2026.
preload_librariesobjectThe shared libraries to preload into the project's compute instances.
Show child attributes
enabled_librariesarray of stringNames of shared preload libraries to enable for the project.
Show child attributes
use_defaultsbooleanWhen true, the project's preload libraries include the platform default set in addition to any libraries listed in `enabled_libraries`.
started_atstring · date-timeA timestamp indicating when the compute endpoint was last started
suspend_timeout_secondsinteger · int64requiredDuration of inactivity in seconds after which the compute endpoint is automatically suspended. The value `0` means use the default value. The value `-1` means never suspend. The default value is `300` seconds (5 minutes). The minimum value is `60` seconds (1 minute). The maximum value is `604800` seconds (1 week). For more information, see [Scale to zero configuration](https://neon.com/docs/manage/endpoints#scale-to-zero-configuration).
suspended_atstring · date-timeA timestamp indicating when the compute endpoint was last suspended
typestringrequiredCompute endpoint type. `read_write`: the primary read-write endpoint (one per branch). `read_only`: a read replica endpoint (multiple allowed per branch).
updated_atstring · date-timerequiredA timestamp indicating when the compute endpoint was last updated
operationsarray of objectrequiredShow child attributes
Show array items
An asynchronous action Neon performs on your resources (for example, starting a compute or creating a branch). Fields such as `action`, `status`, and `total_duration_ms` describe the operation and its progress.
actionstringrequiredThe action performed by the operation
branch_idstringThe ID of the branch this operation ran on.
created_atstring · date-timerequiredA timestamp indicating when the operation was created
endpoint_idstringThe ID of the compute endpoint this operation ran on.
errorstringHuman-readable message describing why the operation failed.
failures_countinteger · int32requiredThe number of times the operation failed
idstring · uuidrequiredThe operation ID
project_idstringrequiredThe ID of the project this operation ran on.
retry_atstring · date-timeA timestamp indicating when the operation was last retried
statusstringrequiredLifecycle state of the operation. `scheduling`: queued, not yet started. `running`: actively executing. `finished`: completed successfully. `failed`: ended with a failure. `error`: ended with a terminal error. `cancelling`: cancellation requested but not yet complete. `cancelled`: stopped before completion. `skipped`: bypassed without executing.
total_duration_msinteger · int32requiredThe total duration of the operation in milliseconds
updated_atstring · date-timerequiredA timestamp indicating when the operation status was last updated
{
"endpoint": {
"autoscaling_limit_max_cu": 1,
"autoscaling_limit_min_cu": 1,
"branch_id": "br-raspy-hill-832856",
"created_at": "2022-12-03T15:37:07Z",
"creation_source": "console",
"current_state": "idle",
"disabled": false,
"host": "ep-steep-bush-777093.us-east-2.aws.neon.tech",
"id": "ep-steep-bush-777093",
"last_active": "2022-12-03T15:00:00Z",
"passwordless_access": true,
"pooler_enabled": false,
"pooler_mode": "transaction",
"project_id": "shiny-wind-028834",
"provisioner": "k8s-pod",
"proxy_host": "us-east-2.aws.neon.tech",
"region_id": "aws-us-east-2",
"settings": {
"pg_settings": {}
},
"suspend_timeout_seconds": 10800,
"type": "read_write",
"updated_at": "2022-12-03T15:49:10Z"
},
"operations": [
{
"action": "suspend_compute",
"branch_id": "br-proud-paper-090813",
"created_at": "2022-12-03T15:51:06Z",
"endpoint_id": "ep-shrill-thunder-454069",
"failures_count": 0,
"id": "fd11748e-3c68-458f-b9e3-66d409e3eef0",
"project_id": "bitter-meadow-966132",
"status": "running",
"total_duration_ms": 100,
"updated_at": "2022-12-03T15:51:06Z"
}
]
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}