> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/jira/delete-user-on-jira-cloud.md).

# Delete User on Jira Cloud

Deletes from Jira Cloud every user that the workflow collected, using the Atlassian account ID that the Jira Cloud user adapter stored for each user.

### Before you begin

* An Atlassian site domain, an admin email and an Atlassian API token of that admin.
* The `jira-cloud-user` adapter must be connected and discovered, because the job reads the account ID from it.
* Accepted asset type: `user`. Required column: `Specifics.jira-cloud-user.accountId`. Users without a value there are left out.
* Defaults you saved for this job in [Action Center Settings](broken://pages/c24f789e38de30d1826122b3a82f349153f232b9) pre-fill the node form. Options you leave out are filled from them when you save the node.

{% hint style="warning" %}
This job deletes real Jira accounts. Test the saved query on a notification job first.
{% endhint %}

### Settings

These are the fields of the job node form.

| Setting               | Type | Required | Default | Description                                                                           |
| --------------------- | ---- | -------- | ------- | ------------------------------------------------------------------------------------- |
| Your Atlassian Domain | Text | Yes      | None    | Your Atlassian site domain, for example `company-name`.                               |
| Jira API Token        | Text | Yes      | None    | Atlassian API token for authentication. Secret, but shown as plain text (not masked). |
| Admin Email           | Text | Yes      | None    | Admin email address used for authentication.                                          |

### How it works

* The job collects the account ID of each matched user and sends one `DELETE` to `https://<domain>.atlassian.net/rest/api/3/user?accountId=<id>` per user, one after another, authenticated as the admin.
* If none of the matched users has an account ID, the job fails with `No Jira user IDs found in the selected users.`
* The first rejected request stops the job with `Jira delete user failed with status: <code>`. Users deleted before that stay deleted, and the rest are not attempted.
* The assets pass on to the next node unchanged.

### Example

Delete the Jira Cloud accounts of users that a condition node matched, for example former employees.

| Setting               | Value               |
| --------------------- | ------------------- |
| Your Atlassian Domain | `example`           |
| Jira API Token        | `YOUR_API_TOKEN`    |
| Admin Email           | `admin@example.com` |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/08e1c051f3c3fc15c184408533696e2939698d56">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/c24f789e38de30d1826122b3a82f349153f232b9">Broken link</a></td></tr><tr><td><strong>Delete User on Jira Self-Hosted</strong></td><td>The same job for Jira Self-Hosted.</td><td><a href="broken://pages/24ca4df46d956a06285cc6a2c3177a9ea0237f57">Broken link</a></td></tr><tr><td><strong>Create User on Jira Cloud</strong></td><td>Create a user on Jira Cloud.</td><td><a href="broken://pages/3fed83004d26f259b0c69307cf3f72781e229d2f">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 6.4.0.
{% endhint %}
