---
type: api
title: Delete a project routing expression
description: ## Required authorization
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch-serverless/operation/operation-project-delete-routing
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch-serverless/operation/operation-project-delete-routing
products:
  - Elasticsearch Serverless
---

# Delete a project routing expression

Availability: Experimental

## Paths

- `DELETE` `/_project_routing/{name}`

#### Path parameters

- `name` (string) — required
  The name of project routing expression

## Required authorization

- Cluster privileges: `manage_project_routing`, `manage`

## Authentication

- Api key: `Authorization: <value>`
  Elasticsearch APIs use key-based authentication.
  You must create an API key and use the encoded value in the request header.
  For example:
  
  
  ```
  curl -X GET "${ES_URL}/_cat/indices?v=true" \
    -H "Authorization: ApiKey ${API_KEY}"
  ```
  
  For more information about where to find API keys for the Elasticsearch endpoint (${ES_URL}) for a project, go to [Get started with Elasticsearch Serverless](https://www.elastic.co/docs/solutions/search/serverless-elasticsearch-get-started).

## Response

`application/json`

- `acknowledged` (boolean)
  For a successful response, this value is always true. On failure, an exception is returned instead.
## Code examples

#### Console

```console
DELETE _project_routing/aws-us-only
```

#### JavaScript

```javascript
const response = await client.project.deleteRouting({
  name: "aws-us-only",
});
```

#### Python

```python
resp = client.perform_request(
    "DELETE",
    "/_project_routing/aws-us-only",
)
```

#### curl

```curl
curl -X DELETE "$ELASTICSEARCH_URL/_project_routing/aws-us-only" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.project().deleteRouting(d -> d
    .name("aws-us-only")
);
```

#### C#

```c#
var response = await client.Project.DeleteRoutingAsync(name: "aws-us-only");
```

#### PHP

```php
$resp = $client->project()->deleteRouting([
    "name" => "aws-us-only",
]);
```

#### Ruby

```ruby
response = client.project.delete_routing(
  name: "aws-us-only"
)
```

## Response examples

#### Delete project response example1

```json
{
  "acknowledged": true
}
```

