Mender-cli artifacts delete ID to delete an artifact

Hi,

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

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

  1. Get the ID
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
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
1 Like

Hi @marizonne.villafranc,

Thanks for sharing the solution so others can benefit!

Greetz,
Josef

1 Like