# Delete service per-replica volume group

Fully deletes a removed per-replica statefulSet volume for the given service: all of its orphaned PVCs and the volume definition. The volume must first be removed from the service.

Required permission: Project > Services > General > Delete

**Path parameters:**

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

**Response body:**

{object}
- `data`: {object}

## API reference

DELETE /v1/projects/{projectId}/services/{serviceId}/per-replica-volumes/volume/{volumeId}

DELETE /v1/teams/{teamId}/projects/{projectId}/services/{serviceId}/per-replica-volumes/volume/{volumeId}

### Example Response

200 OK: The operation was performed successfully.

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

## CLI reference

$ northflank delete service per-replica-volume-group

Options:

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

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

- `--volumeId <volumeId>`: ID of the per-replica volume

- `--verbose `: Verbose output

- `--quiet `: No console output

- `--force `: Don't ask for confirmation

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

### Example Response

 The operation was performed successfully.

```json
{}
```

## JavaScript client reference

### Example request



```javascript
await apiClient.delete.service.perReplicaVolumeGroup({
  parameters: {
    "projectId": "default-project",
    "serviceId": "example-service",
    "volumeId": "data"
  }
});
```

### Example Response

 The operation was performed successfully.

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

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

Next: [Delete service per-replica volume PVC](/docs/v1/api/project/services/delete-service-per-replica-volume-pvc)