# Archive a content entry

_NgCms / Content Entries_

`DELETE /ng-cms/content/{projectId}/{typeKey}/{entryId}`

## Parameters

- `projectId` (string, required) — The unique identifier of the project (bucket)
- `typeKey` (string, required) — The key or ID of the content type
- `entryId` (string, required) — The unique identifier of the content entry to archive

## Responses

### `404` — Entry archived successfully. Despite the 404 status code, this response indicates success — check the body for confirmation.

Type: `ApiResponse<boolean>`

- `success` (boolean) — Always true on success
- `result` (boolean) — Always true on success
- `errors` (ErrorDetail[]) — List of errors (empty on success)

### `401` — Unauthorized. A valid bearer token is required.


### `404` — Not Found. No content entry or content type exists with the given ID or key.


### `412` — Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.


### `500` — Unexpected server error.

Type: `ApiResponse<T>`

- `success` (boolean) — Always false
- `errors` (ErrorDetail[]) — List of server-side errors
  - `correlationId` (string) — Unique ID for tracing the error
  - `message` (string) — Error message
  - `stack` (string) — Stack trace (non-production only)


## Code Examples

### curl

```curl
curl --request DELETE \
  --url https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId} \
  --header 'Authorization: Bearer <token>'
```

### javascript

```js
const options = {
  method: 'DELETE',
  headers: { Authorization: 'Bearer <token>' }
};

fetch('https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

### dotnet

```dotnet
var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", "<token>");

var response = await client.DeleteAsync("https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}");
var result = await response.Content.ReadFromJsonAsync<ApiResponse<bool>>();
```

### python

```python
import requests

url = "https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}"
headers = { "Authorization": "Bearer <token>" }

response = requests.delete(url, headers=headers)
print(response.json())
```

### Response Example (404)

```json
{
  "success": true,
  "result": true,
  "errors": []
}
```
