> 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-insight-asset-per-asset-on-jira-self-hosted.md).

# Delete Insight Asset Per Asset on Jira Self Hosted

Deletes the Jira Assets (Insight) object that is linked to each asset the workflow collected, in Jira Service Management Data Center, using the object id that the Jira Assets adapter discovered.

### Before you begin

* Jira Service Management Data Center with Assets, and either a username and password or a Personal Access Token.
* The `jira-assets` adapter must be connected and discovered, because the job reads the object id from the asset. Required column: `Specifics.jira-assets.id`. Assets without an object id are left out.
* Accepted asset type: `device`.
* 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 Assets objects. 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                                                                                               |
| --------------------- | ---- | ------------------- | ------- | --------------------------------------------------------------------------------------------------------- |
| URL                   | Text | Yes                 | None    | Your Jira Data Center URL. Example: `https://jira.company.com`.                                           |
| Username              | Text | Yes (blank allowed) | None    | For Basic authentication. If you use a Personal Access Token, leave Username and Password blank.          |
| Password              | Text | Yes (blank allowed) | None    | For Basic authentication. Secret. Masked after saving.                                                    |
| Personal Access Token | Text | Yes (blank allowed) | None    | If you use a Personal Access Token (PAT), leave Username and Password blank. Secret. Masked after saving. |

### How it works

* The job reads the Assets object id that the Jira Assets adapter stored on each asset and sends one `DELETE` per asset to `<URL>/rest/assets/1.0/object/<id>`.
* Authentication is a Bearer header when **Personal Access Token** is set, otherwise Basic.
* An asset whose request fails is logged and skipped. The job fails only when no object could be deleted for any matched asset. If none of the matched assets carries an object id, it does nothing.
* The assets pass on to the next node unchanged.

### Example

Delete the Assets objects of devices that a condition node matched.

| Setting               | Value                      |
| --------------------- | -------------------------- |
| URL                   | `https://jira.example.com` |
| Personal Access Token | `YOUR_API_TOKEN`           |

### 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 Insight Asset Per Asset on Jira Cloud</strong></td><td>The same job for Jira Cloud.</td><td><a href="broken://pages/76068e86b8e781617c66c6567e55a08ccdc95df3">Broken link</a></td></tr><tr><td><strong>Update Insight Asset Per Asset on Jira Self-Hosted</strong></td><td>Update the objects instead.</td><td><a href="broken://pages/8c246712d977d631ca1c7b9ca587206ba47675fb">Broken link</a></td></tr></tbody></table>

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