# Clear the build cache of a service

Clears the build cache of a given combined or build service.

Required permission: Project > Services > General > Update

**Path parameters:**

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

**Response body:**

{object}
- `data`: {object}

## API reference

DELETE /v1/projects/{projectId}/services/{serviceId}/build-cache

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

### Example Response

200 OK: The operation was performed successfully.

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

## CLI reference

$ northflank reset service build-cache

Options:

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

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

- `--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.reset.service.buildCache({
  parameters: {
    "projectId": "default-project",
    "serviceId": "example-service"
  }    
});
```

### Example Response

 The operation was performed successfully.

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

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

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