---
type: api
title: Delete a connector sync job
description: Remove a connector sync job and its associated data.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-connector-sync-job-delete
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-connector-sync-job-delete
products:
  - Elasticsearch
---

# Delete a connector sync job

Availability: 8.12+

## Paths

- `DELETE` `/_connector/_sync_job/{connector_sync_job_id}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#bearerauth)

#### Path Parameters

- `connector_sync_job_id` (string Id)
  The unique identifier of the connector sync job to be deleted

## Description

Remove a connector sync job and its associated data.
This is a destructive action that is not recoverable.

## 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 _connector/_sync_job/my-connector-sync-job-id
```

#### JavaScript

```javascript
const response = await client.connector.syncJobDelete({
  connector_sync_job_id: "my-connector-sync-job-id",
});
```

#### Python

```python
resp = client.connector.sync_job_delete(
    connector_sync_job_id="my-connector-sync-job-id",
)
```

#### curl

```curl
curl -X DELETE "$ELASTICSEARCH_URL/_connector/_sync_job/my-connector-sync-job-id" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.connector().syncJobDelete(s -> s
    .connectorSyncJobId("my-connector-sync-job-id")
);
```

#### PHP

```php
$resp = $client->connector()->syncJobDelete([
    "connector_sync_job_id" => "my-connector-sync-job-id",
]);
```

#### Ruby

```ruby
response = client.connector.sync_job_delete(
  connector_sync_job_id: "my-connector-sync-job-id"
)
```

## Response Examples

#### Sync job delete response example1

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

