Skip to main content
Lakebase Postgres is built on object storage, but 99.99999% of reads are served from high-performance local caches

Manage projects

Learn how to manage Neon projects from the Neon Console or the Neon API.

View as Markdown

In Neon, the project is your main workspace. Within a project, you create branches for different workflows, like environments, features, or previews. Each branch contains its own databases, roles, computes, and replicas. Your Neon Plan determines how many projects you can create and the resource limits within those projects.

Default resources

When you add a new project, Neon creates the following resources by default:

  • A root branch is created as your project's default branch. In the Console, this branch is named production; via API/CLI, it's named main. You can create child branches for development, testing, staging, and other purposes. For more information, see Manage branches.
  • A single primary read-write compute. This is the compute associated with the branch. For more information, see Manage computes.
  • A Postgres database that resides on the project's default branch. If you did not specify your own database name when creating the project, the database created is named neondb.
  • A Postgres role that is named for your database. For example, if your database is named neondb, the project is created with a default role named neondb_owner.
  • Postgres storage depends on your Neon plan. On paid plans (Launch and Scale), there's no hard per-branch size limit; your storage grows with your usage, and you pay only for the storage you use. The Free plan includes 1 GB of Postgres storage per project, shared across all branches. This is separate from Object Storage, which has its own allowance.

Create a project

The following instructions describe how to create additional Neon projects. If you are creating your very first Neon project, refer to the instructions in Playing with Neon.

You can create a project from the Console or the Neon CLI. To create one with the API, see Create a project with the API.

  1. Navigate to the Neon Console.
  2. Click New Project.
  3. Enter a Project name and choose a Region (the cloud provider is part of the region). Project names are limited to 64 characters.
  4. Under Services, choose what to enable. Postgres database is on by default (expand it to set the Postgres version). Where the selected region supports them, you can also enable Object storage, Functions, AI gateway, and Neon Auth. Services that aren't available in the selected region aren't shown.
  5. Click Create project.

After creating a project, you are directed to the project's Overview page.

View projects

To view your projects:

  1. Navigate to the Neon Console.
  2. From the profile menu in the top-right of the console, select your organization.
  3. The Projects page lists your projects, including any projects that have been shared with you.

Project settings

Once you open a project, you use the Settings page to manage the project and configure its defaults. Settings are grouped into tabs, and project-wide settings are labeled Applies to all branches to distinguish them from branch-level settings.

The Settings page includes these tabs:

  • General: View the project and branch IDs, rename the project or branch, protect a branch, set branch expiration, change the project's default branch, and transfer or delete the project.
  • Postgres: Configure project-wide database defaults (all labeled Applies to all branches): compute defaults (size and scale to zero) for new computes, the history window for instant restore and Time Travel, your update schedule, logical replication, and the Data API.
  • Networking: Control Public internet access (allow any IP address or restrict to an IP allowlist) and VPC access (Private Networking).
  • Credentials: Manage branch-scoped, per-service credentials, used as S3 access keys for Object Storage and as Bearer API tokens for the AI Gateway.
  • Auth: Configure Managed Better Auth: application info and URLs, trusted redirect domains, email sign-up and sign-in, OAuth providers, the email provider, and webhooks.
  • Functions: Manage custom domains for your Neon Functions.
  • HIPAA compliance: Enable HIPAA compliance for the project.
  • Sharing and Project permissions: Invite external collaborators and grant organization members per-project access. See User permissions.

General project settings

On the General page, you are permitted to change the name of your project or copy the project ID. The project ID is permanent and cannot be changed.

Change your project's default compute settings

You can change your project's default compute settings on the Postgres tab, under Compute defaults. These settings determine the compute resources allocated to any new branches or read replicas you create.

important

Changes to default compute settings only affect newly created computes. Existing computes, including those on your primary branch and read replicas, will not be automatically updated. To change settings for existing computes, you need to update them individually through the Branches page.

A Compute Unit (CU) represents approximately 4 GB of RAM, along with associated CPU and local SSD resources. New branches inherit compute settings from your first branch, but you can change these defaults to:

  • Set smaller compute sizes for preview deployments and development branches
  • Standardize settings across read replicas
  • Optimize resource usage and costs for non-production workloads

Neon supports two compute configurations:

  • Fixed size: Select a fixed compute size ranging from .25 CUs to 56 CUs
  • Autoscaling: Specify minimum and maximum compute sizes (from .25 CU to 16 CUs) to automatically scale based on workload. Note: The maximum permitted autoscaling range is 8 CU, meaning the difference between max and min cannot exceed 8 CU (for example, if min = 1 CU, max can be at most 9 CU). For more information, see Autoscaling

Configure the history window for instant restore

By default, Neon retains a history of changes for all branches in your project, enabling features like:

For plan limits, billing, and how retention works, see History window.

If you extend the history window, you expand how far back instant restore and Time Travel can go, but you also increase History usage (change history billed for instant restore) on your project.

Also note that adjusting the history window affects all branches in your project.

To configure the history window:

  1. Select a project in the Neon Console.
  2. Select Settings in the sidebar.
  3. Select Postgres.
  4. Under History window, use the slider to choose how long to keep change history.
  5. Click Save.

Schedule updates for your project

To keep your Neon computes and Postgres instances up to date, Neon automatically applies scheduled updates that include Postgres minor version upgrades, security patches, and new features. Updates are applied to the computes within your project. They require a quick compute restart, take only a few seconds, and typically occur weekly.

On the Free plan, updates are automatically scheduled. On paid plans, you can set a preferred day and time for updates. Restarts occur within your selected time window and take only a few seconds.

To set your project's update schedule or view currently scheduled updates:

  1. Go to Settings > Postgres and find Updates.
  2. Choose a day of the week and an hour. Updates will occur within this time window and take only a few seconds.

For more information, see Updates.

Give someone access to a project

How you grant access depends on whether the person is already in your organization:

  • Organization members: Grant them a per-project permission (Viewer, Editor, or Admin) from the project's Settings → Project permissions page. This is also how you give a member more access on one project than their organization role provides. See Assign project access.
  • People outside your organization: Invite them as a collaborator, as described below.

Invite collaborators to a project

Neon's project collaboration feature allows you to invite external Neon accounts to collaborate on a Neon project.

note

Project sharing is being deprecated and will be removed in a future release. To give a contractor or other limited-access user access to specific projects, add them to the organization as a Collaborator and grant per-project permissions instead. See User permissions.

Organization members can't be added as collaborators on organization-owned projects. Grant them a per-project permission instead.

To invite collaborators to a Neon project:

  1. In the Neon Console, select a project.
  2. Select Settings.
  3. Select Sharing.
  4. Select Invite and enter the email address of the account you want to collaborate with.
  5. Click Invite.

The email you specify is added to the list of Collaborators. The Neon account associated with that email address is granted full access to the project, with the exception of privileges required to delete the project. This account can also invite other Neon users to the project. When that user logs in to Neon, the project they were invited to is listed on their Projects page under Shared with you.

The costs associated with projects being collaborated on are charged to the Neon account that owns the project. For example, if you invite another Neon user account to a project you own, any usage incurred by that user within your project is billed to your Neon account, not theirs.

For additional information, refer to our Project collaboration guide.

Configure IP Allow

The IP Allow feature provides an added layer of security for your data, restricting access to the branch where your database resides to only those IP addresses that you specify. In Neon, the IP allowlist is applied to all branches by default.

Optionally, you can allow unrestricted access to your project's non-protected branches. For instance, you might want to restrict access to protected branches to a handful of trusted IPs while allowing unrestricted access to your development branches.

By default, Neon allows IP addresses from 0.0.0.0, which means that Neon accepts connections from any IP address. Once you configure IP Allow by adding IP addresses or ranges, only those IP addresses can connect to your databases.

IP Allow restricts Postgres connections only

It doesn't protect the Data API, Realtime, Managed Better Auth, Object Storage, the AI Gateway, or function URLs. Realtime, Managed Better Auth, and database connections from Neon Functions also stop working while IP Allow is enabled. See IP Allow and other Neon services.

note

Neon projects provisioned on AWS support both IPv4 and IPv6 addresses. Neon project provisioned on Azure currently on support IPv4.

To configure an allowlist:

  1. Select a project in the Neon Console.
  2. Select Settings in the sidebar.
  3. Select Networking.
  4. Under Public internet access, select Only addresses on the allowlist, then specify the IP addresses you want to permit. Separate multiple entries with commas.
  5. Optionally, under Restricted branches, select Protected branches only to enforce the allowlist only on branches you've designated as protected. Every other branch keeps accepting any address.
  6. Click Save changes.

How to specify IP addresses

You can define an allowlist with individual IP addresses, IP ranges, or CIDR notation. A combination of these options is also permitted. Multiple entries, whether they are the same or of different types, must be separated by a comma. Whitespace is ignored.

  • Add individual IP addresses: You can add individual IP addresses that you want to allow. This is useful for granting access to specific users or devices. This example represents a single IP address:

    192.0.2.1
  • Define IP ranges: For broader access control, you can define IP ranges. This is useful for allowing access from a company network or a range of known IPs. This example range includes all IP addresses from 198.51.100.20 to 198.51.100.50:

    198.51.100.20-198.51.100.50
  • Use CIDR notation: For more advanced control, you can use CIDR (Classless Inter-Domain Routing) notation. This is a compact way of defining a range of IPs and is useful for larger networks or subnets. Using CIDR notation can be advantageous when managing access to branches with numerous potential users, such as in a large development team or a company-wide network.

    This CIDR notation example represents all 256 IP addresses from 203.0.113.0 to 203.0.113.255.

    203.0.113.0/24
  • Use IPv6 addresses: Neon projects provisioned on AWS also support specifying IPv6 addresses. For example:

    note

    IPv6 is not yet supported for projects provisioned on Azure.

    2001:DB8:5432::/48

A combined example using all three options above, specified as a comma-separated list, would appear similar to the following:

192.0.2.1, 198.51.100.20-198.51.100.50, 203.0.113.0/24, 2001:DB8:5432::/48

This list combines individual IP addresses, a range of IP addresses, a CIDR block, and an IPv6 address. It illustrates how different types of IP specifications can be used together in a single allowlist configuration, offering a flexible approach to access control.

Update an IP Allow configuration

You can update your IP Allow configuration via the Neon Console or API as described in Configure IP Allow. Replace the current configuration with the new configuration. For example, if your IP Allow configuration currently allows access from IP address 192.0.2.1, and you want to extend access to IP address 192.0.2.2, specify both addresses in your new configuration: 192.0.2.1, 192.0.2.2. You cannot append values to an existing configuration. You can only replace an existing configuration with a new one.

The Neon CLI provides an ip-allow command with add, reset, and remove options that you can use to update your IP Allow configuration. For instructions, refer to Neon CLI commands — ip-allow.

Remove an IP Allow configuration

To remove an IP configuration entirely to go back to the default "no IP restrictions" (0.0.0.0) configuration:

  1. Select a project in the Neon Console.
  2. Select Settings in the sidebar.
  3. Select Networking.
  4. Under Public internet access, select Any IP address.
  5. Click Save changes.

Enable the Data API

The Data API turns your database tables into a REST API, making it easy to query your data from client applications. When you enable the Data API, it automatically creates authenticated and anonymous roles and sets up the necessary permissions for secure client-side access.

For setup instructions and examples, see the Data API documentation.

Enable logical replication

Logical replication lets you replicate data changes from Neon to external data services and platforms, including data warehouses, analytical database services, messaging platforms, event-streaming platforms, and external Postgres databases.

important

Enabling logical replication changes the PostgreSQL wal_level setting from replica to logical for all databases in your Neon project. This allows Postgres to record the row-level WAL detail required for logical decoding. Once changed, it cannot be reverted. Enabling logical replication also restarts all computes, so active connections will be dropped and have to reconnect.

  1. Select your project in the Neon Console.
  2. Select Settings in the sidebar.
  3. Select Postgres, then find Logical replication.
  4. Click Enable to enable logical replication.

You can verify that logical replication is enabled by running the following query:

SHOW wal_level;
wal_level
-----------
logical

After enabling logical replication, the next steps involve creating publications on your replication source database in Neon and configuring subscriptions on the destination system or service. To get started, refer to our logical replication guides.

Delete a project

Deleting a project also deletes any computes, branches, databases, and roles that belong to the project. You can recover the project within seven days. After the recovery period ends, deletion is permanent.

Deleting a project requires Admin access on that project, which every organization Admin has. A member granted Admin on a single project can delete that project. See Per-project permissions.

To delete a project:

  1. Navigate to the Neon Console.
  2. Select the project that you want to delete.
  3. Select Settings.
  4. On the General tab, under Delete project, select Delete project.

note

Deleting a project doesn't release its custom domains. Delete any domains you want to reuse before you delete the project.

note

For HIPAA-compliant projects, see HIPAA Compliance before deleting a project—for example, to export audit logs you may need.

important

If you are any of Neon's paid plans, deleting all your Neon projects won't stop monthly billing. To avoid charges, you also need to downgrade to the Free plan. You can do so from the Billing page in the Neon Console.

note

Deleted projects can be recovered within the deletion recovery period (7 days) from the Console, CLI, or API. For details, see Recover a deleted project.

Manage projects with the Neon API

Project actions performed in the Neon Console can also be performed using the Neon API. The following examples demonstrate how to create, view, and delete projects using the Neon API. For other project-related API methods, refer to the Neon API Reference.

note

The API examples that follow may not show all of the user-configurable request body attributes that are available to you. To view all attributes for a particular method, refer to method's request body schema in the Neon API Reference.

The jq option specified in each example is an optional third-party tool that formats the JSON response, making it easier to read. For information about this utility, see jq.

Prerequisites

A Neon API request requires an API key. For information about obtaining an API key, see Create an API key. In the cURL examples shown below, $NEON_API_KEY is specified in place of an actual API key, which you must provide when making a Neon API request.

note

To learn more about the types of API keys you can create — personal, organization, or project-scoped — see Manage API Keys.

Create a project with the API

The following Neon API method creates a project. To view the API documentation for this method, refer to the Neon API Reference.

POST /projects

The API method appears as follows when specified in a cURL command. The myproject name value is a user-specified name for the project.

curl 'https://console.neon.tech/api/v2/projects' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $NEON_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "project": {
    "name": "myproject"
  }
}' | jq

The response includes information about the role, the database, the default branch, and the primary read-write compute that is created with the project.

Response body

For attribute definitions, find the Create project endpoint in the Neon API Reference. Definitions are provided in the Responses section.

{
  "project": {
    "data_storage_bytes_hour": 0,
    "data_transfer_bytes": 0,
    "written_data_bytes": 0,
    "compute_time_seconds": 0,
    "active_time_seconds": 0,
    "cpu_used_sec": 0,
    "id": "ep-cool-darkness-123456",
    "platform_id": "aws",
    "region_id": "aws-us-east-1",
    "name": "myproject",
    "provisioner": "k8s-neonvm",
    "default_endpoint_settings": {
      "autoscaling_limit_min_cu": 0.25,
      "autoscaling_limit_max_cu": 0.25,
      "suspend_timeout_seconds": 0
    },
    "settings": {
      "allowed_ips": {
        "ips": [],
        "protected_branches_only": false
      },
      "enable_logical_replication": false,
      "maintenance_window": {
        "weekdays": [7],
        "start_time": "06:00",
        "end_time": "07:00"
      },
      "block_public_connections": false,
      "block_vpc_connections": false,
      "hipaa": false
    },
    "pg_version": 17,
    "proxy_host": "c-2.us-east-1.aws.neon.tech",
    "branch_logical_size_limit": 512,
    "branch_logical_size_limit_bytes": 536870912,
    "store_passwords": true,
    "creation_source": "console",
    "history_retention_seconds": 86400,
    "created_at": "2026-08-04T05:15:41Z",
    "updated_at": "2026-08-04T05:15:41Z",
    "consumption_period_start": "0001-01-01T00:00:00Z",
    "consumption_period_end": "0001-01-01T00:00:00Z",
    "owner_id": "91cbdacd-06c2-49f5-bacf-78b9463c81ca"
  },
  "connection_uris": [
    {
      "connection_uri": "postgresql://alex:AbC123dEf@ep-cool-darkness-123456.c-2.us-east-1.aws.neon.tech/dbname?sslmode=require&channel_binding=require",
      "connection_parameters": {
        "database": "dbname",
        "password": "AbC123dEf",
        "role": "alex",
        "host": "ep-cool-darkness-123456.c-2.us-east-1.aws.neon.tech",
        "pooler_host": "ep-cool-darkness-123456-pooler.c-2.us-east-1.aws.neon.tech"
      }
    }
  ],
  "roles": [
    {
      "branch_id": "br-gentle-salad-123456",
      "name": "neondb_owner",
      "password": "npg_Se0ECYqaJ5jA",
      "protected": false,
      "created_at": "2026-08-04T05:15:41Z",
      "updated_at": "2026-08-04T05:15:41Z"
    }
  ],
  "databases": [
    {
      "id": 5140981,
      "branch_id": "br-gentle-salad-123456",
      "name": "neondb",
      "owner_name": "neondb_owner",
      "created_at": "2026-08-04T05:15:41Z",
      "updated_at": "2026-08-04T05:15:41Z"
    }
  ],
  "operations": [
    {
      "id": "cacca1d4-ad0e-46dc-ae82-886ffb96889d",
      "project_id": "ep-cool-darkness-123456",
      "branch_id": "br-gentle-salad-123456",
      "action": "create_timeline",
      "status": "running",
      "failures_count": 0,
      "created_at": "2026-08-04T05:15:41Z",
      "updated_at": "2026-08-04T05:15:41Z",
      "total_duration_ms": 0
    },
    {
      "id": "1df43d11-5c07-4de1-9440-ac09d305fdf3",
      "project_id": "ep-cool-darkness-123456",
      "branch_id": "br-gentle-salad-123456",
      "endpoint_id": "ep-cool-darkness-123456",
      "action": "start_compute",
      "status": "scheduling",
      "failures_count": 0,
      "created_at": "2026-08-04T05:15:41Z",
      "updated_at": "2026-08-04T05:15:41Z",
      "total_duration_ms": 0
    }
  ],
  "branch": {
    "id": "br-gentle-salad-123456",
    "project_id": "ep-cool-darkness-123456",
    "name": "main",
    "current_state": "init",
    "pending_state": "ready",
    "state_changed_at": "2026-08-04T05:15:41Z",
    "creation_source": "console",
    "primary": true,
    "default": true,
    "protected": false,
    "cpu_used_sec": 0,
    "compute_time_seconds": 0,
    "active_time_seconds": 0,
    "written_data_bytes": 0,
    "data_transfer_bytes": 0,
    "created_at": "2026-08-04T05:15:41Z",
    "updated_at": "2026-08-04T05:15:41Z",
    "init_source": "parent-data"
  },
  "endpoints": [
    {
      "host": "ep-cool-darkness-123456.c-2.us-east-1.aws.neon.tech",
      "id": "ep-cool-darkness-123456",
      "project_id": "ep-cool-darkness-123456",
      "branch_id": "br-gentle-salad-123456",
      "autoscaling_limit_min_cu": 0.25,
      "autoscaling_limit_max_cu": 0.25,
      "region_id": "aws-us-east-1",
      "type": "read_write",
      "current_state": "init",
      "pending_state": "active",
      "settings": {},
      "pooler_enabled": false,
      "pooler_mode": "transaction",
      "disabled": false,
      "passwordless_access": true,
      "creation_source": "console",
      "created_at": "2026-08-04T05:15:41Z",
      "updated_at": "2026-08-04T05:15:41Z",
      "proxy_host": "c-2.us-east-1.aws.neon.tech",
      "suspend_timeout_seconds": 0,
      "provisioner": "k8s-neonvm"
    }
  ]
}

List projects with the API

The following Neon API method lists projects for your Neon account. To view the API documentation for this method, refer to the Neon API Reference.

GET /projects

The API method appears as follows when specified in a cURL command:

curl 'https://console.neon.tech/api/v2/projects' \
 -H 'Accept: application/json' \
 -H "Authorization: Bearer $NEON_API_KEY" | jq
Response body

For attribute definitions, find the List projects endpoint in the Neon API Reference. Definitions are provided in the Responses section.

{
  "projects": [
    {
      "id": "frosty-tree-10754091",
      "platform_id": "aws",
      "region_id": "aws-ap-southeast-1",
      "name": "personal_projects",
      "provisioner": "k8s-neonvm",
      "default_endpoint_settings": {
        "autoscaling_limit_min_cu": 0.25,
        "autoscaling_limit_max_cu": 2,
        "suspend_timeout_seconds": 0
      },
      "settings": {
        "allowed_ips": {
          "ips": [],
          "protected_branches_only": false
        },
        "enable_logical_replication": false,
        "maintenance_window": {
          "weekdays": [4],
          "start_time": "15:00",
          "end_time": "16:00"
        },
        "block_public_connections": false,
        "block_vpc_connections": false,
        "hipaa": false
      },
      "pg_version": 17,
      "proxy_host": "ap-southeast-1.aws.neon.tech",
      "branch_logical_size_limit": 512,
      "branch_logical_size_limit_bytes": 536870912,
      "store_passwords": true,
      "active_time": 1260,
      "cpu_used_sec": 319,
      "creation_source": "console",
      "created_at": "2026-11-08T17:20:01Z",
      "updated_at": "2026-08-03T01:16:18Z",
      "synthetic_storage_size": 96929448,
      "quota_reset_at": "2026-09-01T00:00:00Z",
      "owner_id": "91cbdacd-06c2-49f5-bacf-78b9463c81ca",
      "compute_last_active_at": "2026-08-03T01:16:18Z",
      "history_retention_seconds": 86400
    },
    {
      "id": "lingering-grass-54827563",
      "platform_id": "aws",
      "region_id": "aws-ap-southeast-1",
      "name": "brizai",
      "provisioner": "k8s-neonvm",
      "default_endpoint_settings": {
        "autoscaling_limit_min_cu": 0.25,
        "autoscaling_limit_max_cu": 2,
        "suspend_timeout_seconds": 0
      },
      "settings": {
        "allowed_ips": {
          "ips": [],
          "protected_branches_only": false
        },
        "enable_logical_replication": false,
        "maintenance_window": {
          "weekdays": [1],
          "start_time": "16:00",
          "end_time": "17:00"
        },
        "block_public_connections": false,
        "block_vpc_connections": false,
        "hipaa": false
      },
      "pg_version": 17,
      "proxy_host": "ap-southeast-1.aws.neon.tech",
      "branch_logical_size_limit": 512,
      "branch_logical_size_limit_bytes": 536870912,
      "store_passwords": true,
      "active_time": 0,
      "cpu_used_sec": 0,
      "creation_source": "console",
      "created_at": "2026-10-28T16:26:49Z",
      "updated_at": "2026-08-01T00:34:48Z",
      "synthetic_storage_size": 31082816,
      "quota_reset_at": "2026-09-01T00:00:00Z",
      "owner_id": "91cbdacd-06c2-49f5-bacf-78b9463c81ca",
      "compute_last_active_at": "2026-02-14T09:51:30Z",
      "history_retention_seconds": 86400
    }
  ],
  "unavailable_project_ids": [],
  "pagination": {
    "cursor": "lingering-grass-54827563"
  },
  "applications": {
    "frosty-tree-10754091": ["vercel"]
  },
  "integrations": {
    "frosty-tree-10754091": ["vercel"]
  }
}

Count projects with the API

To get the number of projects without paging through the list, use the following Neon API method. It counts active projects only. Projects that are being created, or that were deleted and are still within the recovery window, aren't included. To view the API documentation for this method, refer to the Neon API Reference.

GET /projects/count

If you use a personal API key, include the org_id parameter to specify the organization. With an org API key, the organization is inferred from the key.

curl 'https://console.neon.tech/api/v2/projects/count?org_id=org-example-12345678' \
 -H 'Accept: application/json' \
 -H "Authorization: Bearer $NEON_API_KEY"

The response contains the count:

{
  "count": 12
}

Update a project with the API

The following Neon API method updates the specified project. To view the API documentation for this method, refer to the Neon API Reference.

PATCH /projects/{project_id}

The API method appears as follows when specified in a cURL command. The project_id is a required parameter. The example changes the project name to project1.

curl -X PATCH 'https://console.neon.tech/api/v2/projects/ep-cool-darkness-123456' \
  -H 'accept: application/json' \
  -H "Authorization: Bearer $NEON_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "project": {
    "name": "project1"
  }
}'
Response body

For attribute definitions, find the Update project endpoint in the Neon API Reference. Definitions are provided in the Responses section.

{
  "project": {
    "data_storage_bytes_hour": 35697544,
    "data_transfer_bytes": 13444,
    "written_data_bytes": 34595496,
    "compute_time_seconds": 89,
    "active_time_seconds": 348,
    "cpu_used_sec": 89,
    "id": "ep-cool-darkness-123456",
    "platform_id": "aws",
    "region_id": "aws-us-east-1",
    "name": "project1",
    "provisioner": "k8s-neonvm",
    "default_endpoint_settings": {
      "autoscaling_limit_min_cu": 0.25,
      "autoscaling_limit_max_cu": 0.25,
      "suspend_timeout_seconds": 0
    },
    "settings": {
      "allowed_ips": {
        "ips": [],
        "protected_branches_only": false
      },
      "enable_logical_replication": false,
      "maintenance_window": {
        "weekdays": [7],
        "start_time": "06:00",
        "end_time": "07:00"
      },
      "block_public_connections": false,
      "block_vpc_connections": false,
      "hipaa": false
    },
    "pg_version": 17,
    "proxy_host": "c-2.us-east-1.aws.neon.tech",
    "branch_logical_size_limit": 512,
    "branch_logical_size_limit_bytes": 536870912,
    "store_passwords": true,
    "creation_source": "console",
    "history_retention_seconds": 86400,
    "created_at": "2026-08-04T05:15:41Z",
    "updated_at": "2026-08-04T05:55:58Z",
    "synthetic_storage_size": 35697544,
    "consumption_period_start": "0001-01-01T00:00:00Z",
    "consumption_period_end": "0001-01-01T00:00:00Z",
    "owner_id": "91cbdacd-06c2-49f5-bacf-78b9463c81ca",
    "compute_last_active_at": "2026-08-04T05:15:47Z"
  },
  "operations": []
}

Delete a project with the API

The following Neon API method deletes the specified project. To view the API documentation for this method, refer to the Neon API Reference.

DELETE /projects/{project_id}

The API method appears as follows when specified in a cURL command. The project_id is a required parameter.

curl -X 'DELETE' \
  'https://console.neon.tech/api/v2/projects/ep-cool-darkness-123456' \
  -H 'accept: application/json' \
  -H "Authorization: Bearer $NEON_API_KEY"
Response body

For attribute definitions, find the Delete project endpoint in the Neon API Reference. Definitions are provided in the Responses section.

{
  "project": {
    "data_storage_bytes_hour": 35697544,
    "data_transfer_bytes": 13444,
    "written_data_bytes": 34595496,
    "compute_time_seconds": 89,
    "active_time_seconds": 348,
    "cpu_used_sec": 89,
    "id": "ep-cool-darkness-123456",
    "platform_id": "aws",
    "region_id": "aws-us-east-1",
    "name": "project2",
    "provisioner": "k8s-neonvm",
    "default_endpoint_settings": {
      "autoscaling_limit_min_cu": 0.25,
      "autoscaling_limit_max_cu": 0.25,
      "suspend_timeout_seconds": 0
    },
    "settings": {
      "allowed_ips": {
        "ips": [],
        "protected_branches_only": false
      },
      "enable_logical_replication": false,
      "maintenance_window": {
        "weekdays": [7],
        "start_time": "06:00",
        "end_time": "07:00"
      },
      "block_public_connections": false,
      "block_vpc_connections": false,
      "hipaa": false
    },
    "pg_version": 17,
    "proxy_host": "c-2.us-east-1.aws.neon.tech",
    "branch_logical_size_limit": 512,
    "branch_logical_size_limit_bytes": 536870912,
    "store_passwords": true,
    "creation_source": "console",
    "history_retention_seconds": 86400,
    "created_at": "2026-08-04T05:15:41Z",
    "updated_at": "2026-08-04T06:10:55Z",
    "synthetic_storage_size": 35697544,
    "consumption_period_start": "0001-01-01T00:00:00Z",
    "consumption_period_end": "0001-01-01T00:00:00Z",
    "owner_id": "91cbdacd-06c2-49f5-bacf-78b9463c81ca",
    "compute_last_active_at": "2026-08-04T05:15:47Z"
  }
}

Recover a deleted project

If you accidentally delete a project, you can recover it within 7 days. This deletion recovery period restores the resources and settings listed below. Some integrations and Data API configuration require setup again after recovery.

note

The deletion recovery period is different from the history window used for instant restore on branch data. The history window enables point-in-time recovery (PITR) for branch data, while the deletion recovery period allows you to recover (undelete) an entire deleted project.

What's recovered

When you recover a deleted project, the following are restored:

  • All branches, endpoints, snapshots, and compute configurations that existed when you deleted the project
  • Project settings (IP Allow, logical replication, protected branches, scheduled updates)
  • Project collaborators
  • Connection strings
  • Vercel-Managed Neon integration projects are re-imported into Vercel for management and billing

Branches with an expiration time that passes during the deletion recovery period are permanently deleted and aren't restored.

What requires reconfiguration

The following features are not recovered and must be manually re-enabled after recovery:

  • Data API (including authenticated and anonymous roles)
  • GitHub integration
  • Neon-Managed Vercel integration (Vercel Connected Accounts)
  • Vercel-Managed Neon integration (project reconnection via Storage)
  • Monitoring integrations (Datadog, OpenTelemetry, etc.)
  • Scoped credentials for Object Storage and the AI Gateway. Deleting a project revokes them, and they stay revoked after recovery. Create new credentials and update your apps. Neon Functions get a new credential automatically.

While a project is deleted

You can't connect to a deleted project's databases. Access returns when you recover the project.

Costs

There are no storage costs or recovery fees during the 7-day deletion recovery period.

Requirements and limitations

  • Permissions: Recovering a project requires the same access as deleting one: organization Admin, or Admin on that project. See Per-project permissions.
  • HIPAA projects: Projects with HIPAA compliance enabled can't be recovered. Deleting a HIPAA-compliant project is permanent.
  • Vercel-Managed Neon projects: Recovery re-imports the project into Vercel, so the Vercel integration for the organization must still exist. If the Neon organization was also deleted (for example, when you remove the database from Vercel Storage), contact Support.

Recover a project

When an organization has projects that can be recovered, its Projects page shows a banner stating how many projects are set to be permanently deleted. The banner doesn't appear when there's nothing to recover.

To recover a deleted project:

  1. Navigate to the Neon Console and open the Projects page for the organization the project belonged to.
  2. On the banner that says projects are set to be permanently deleted, select Manage.
  3. In the Recently deleted projects dialog, find the project. The Delete forever in column shows how much time is left to recover it.
  4. Select Recover.

The Console opens the recovered project. A Project recovered notice on the project dashboard reminds you to review the project's integrations and reconnect any that stopped working. See What requires reconfiguration.

If recovery fails, the Console shows an error and you can try again.

Need help?

Join our Discord Server to ask questions or see what others are doing with Neon. For paid plan support options, see Support.

Last updated on

Was this page helpful?
Edit on GitHub