# Abort service build

Aborts the given service build

Required permission: Project > Services > Deployment > Deploy Build

**Path parameters:**

{object}
- `projectId`: (string) (required) ID of the project
- `serviceId`: (string) (required) ID of the service
- `buildId`: (string) (required) ID of the service build

**Response body:**

{object}
- `data`: {object}

## API reference

DELETE /v1/projects/{projectId}/services/{serviceId}/build/{buildId}

DELETE /v1/teams/{teamId}/projects/{projectId}/services/{serviceId}/build/{buildId}

### Example Response

200 OK: The operation was performed successfully.

```json
{
  "data": {}
}
```

## CLI reference

$ northflank abort service build

Options:

- `--projectId <projectId>`: ID of the project

- `--serviceId <serviceId>`: ID of the service

- `--buildId <buildId>`: ID of the service build

- `--verbose `: Verbose output

- `--quiet `: No console output

- `-o --output <format>`: Output formatting 

### Example Response

 The operation was performed successfully.

```json
{}
```

## JavaScript client reference

### Example request



```javascript
await apiClient.abort.service.build({
  parameters: {
    "projectId": "default-project",
    "serviceId": "example-service",
    "buildId": "joyous-view-6290"
  }    
});
```

### Example Response

 The operation was performed successfully.

```json
{
  "data": {},
  "rawResponse": "...",
  "request": "...",
  "error": "..."
}
```

Previous: [Get service build](/docs/v1/api//project/services/get-service-build)

Next: [List service containers](/docs/v1/api//project/services/list-service-containers)