> For the complete documentation index, see [llms.txt](https://emotiv.gitbook.io/cortex-library-for-mobile/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://emotiv.gitbook.io/cortex-library-for-mobile/jsonapi/deletevirtualheadset.md).

# deleteVirtualHeadset

This method lets you delete a virtual headset that was previously created by [createVirtualHeadset](/cortex-library-for-mobile/jsonapi/createvirtualheadset.md).

## Parameters

| Name             | Type     | Required | Description                                                                                    |
| ---------------- | -------- | -------- | ---------------------------------------------------------------------------------------------- |
| cortexToken      | `string` | yes      | A token returned by [authorize](https://emotiv.gitbook.io/cortex-api/authentication/authorize) |
| virtualHeadsetId | `string` | yes      | The `uuid` of the virtual headset you want to delete.                                          |

## Result

The result is an object with these fields:

| Name             | Type     | Description                                    |
| ---------------- | -------- | ---------------------------------------------- |
| virtualHeadsetId | `string` | The `uuid` of the virtual headset you deleted. |
| message          | `string` | A success message.                             |

## Example

{% tabs %}
{% tab title="Request" %}

```javascript
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "deleteVirtualHeadset",
  "params": {
    "cortexToken": "xxx",
    "virtualHeadsetId": "5ed162b5-a6ce-49ee-9775-cdc6be26a783"
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "virtualHeadsetId": "5ed162b5-a6ce-49ee-9775-cdc6be26a783",
    "message": "Headset deleted successfully"
  }
}
```

{% endtab %}
{% endtabs %}
