---
title: "Delete an option list"
slug: "delete-an-option-list"
abstract: "How to delete an option list."
---
# Delete an option list

```text
DELETE /datasources/<name>

```

Replace these placeholders:

| placeholder | description |
| --- | --- |
| <name> | the **name** of option list that needs to be returned |

## Response

| Response | Body |
| --- | --- |
| `204 No Content` | Returns an empty body when everything was processed without errors. |
| `500 Internal Server Error` | Returns an object that contains the specific error message and stack trace if the item list can not be found, ie. it has already been deleted or the name is wrong. |

## Response examples

```text
Status: 204 No Content

```

```shell
Status: 403 Forbidden

{
  "Message": "Only the 'Job.State' property can be changed."
}

```