# Mender-cli artifacts delete ID to delete an artifact

**URL:** https://hub.mender.io/t/mender-cli-artifacts-delete-id-to-delete-an-artifact/5454
**Category:** General Discussions
**Tags:** yocto, zeus, mender-cli
**Created:** [November 24, 2022, 6:04am UTC](https://hub.mender.io/t/mender-cli-artifacts-delete-id-to-delete-an-artifact/5454 "2022-11-24T06:04:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)
#### Post date: [November 24, 2022, 6:04am UTC](https://hub.mender.io/t/mender-cli-artifacts-delete-id-to-delete-an-artifact/5454/1 "2022-11-24T06:04:17Z")

</div>

Hi,

I would like to delete an artifact using mender-cli, how to do this?  
This is how I tried it:

```auto
herodev@ubuntu-bionic-desktop:~/Downloads$ ./mender-cli artifacts --server https://mender.lumen.com.au delete hero-secc-release-2.0rc9748-dbg3
Configuration file not found. Continuing.
FAILURE: artifact upload failed with status 404, reason: Gateway Timeout

```

It says artifact upload failed but I’m suppose to delete that artifact.  
What’s the correct syntax?

Thank you!

Kind regards,  
Marizonne

---

<div class="post-metadata">

### Author: ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)
#### Post date: [November 24, 2022, 6:24am UTC](https://hub.mender.io/t/mender-cli-artifacts-delete-id-to-delete-an-artifact/5454/2 "2022-11-24T06:24:12Z")

</div>

1. Get the ID

```auto
herodev@ubuntu-bionic-desktop:~/Downloads$ ./mender-cli artifacts list --server https://mender.lumen.com.au
Configuration file not found. Continuing.
ID: 084d7982-6e1b-403b-90eb-44154840f6ed
Name: hero-secc-release-1.50-RC2

```

1. Delete using the ID

```auto
herodev@ubuntu-bionic-desktop:~/Downloads$ ./mender-cli artifacts delete 084d7982-6e1b-403b-90eb-44154840f6ed --server https://mender.lumen.com.au
Configuration file not found. Continuing.
delete successful

```

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [November 24, 2022, 11:26am UTC](https://hub.mender.io/t/mender-cli-artifacts-delete-id-to-delete-an-artifact/5454/3 "2022-11-24T11:26:05Z")

</div>

Hi @marizonne.villafranc,

Thanks for sharing the solution so others can benefit!

Greetz,  
Josef
