# Cannot clear a deployment from server

**URL:** <https://hub.mender.io/t/cannot-clear-a-deployment-from-server/1370>\
**Category:** General Discussions\
**Created:** [December 18, 2019, 10:42am UTC](https://hub.mender.io/t/cannot-clear-a-deployment-from-server/1370 "2019-12-18T10:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [December 18, 2019, 10:42am UTC](https://hub.mender.io/t/cannot-clear-a-deployment-from-server/1370/1 "2019-12-18T10:42:13Z")

</div>

I am just messing about testing with the same mender artifact, and obviously that’s not you would do in production, however I am playing with the rest APIs and deleted my devices deployments however I cannot seem to delete a deployment entry for a deployment group.

This seems is be stopping me from reusing the same artifact as calling rest endpoints just returns no updates as the server has some knowledge about the artifact has been installed already. I juts want to clear everything so I can retest. I don’t want to keep creating new artifacts just for testing scenarios with the rest api.

Calling:  
/api/management/v1/deployments/deployments

gives me (which i cannot delete):  
[  
{  
“name”: “DevDevices”,  
“artifact\_name”: “0.0.5”,  
“created”: “2019-12-17T13:21:02.231Z”,  
“finished”: “2019-12-17T15:28:51.877Z”,  
“id”: “85e1d728-2706-4730-bc5a-046d646fdb2b”,  
“artifacts”: [  
“6d369222-0aab-4c94-a104-c2fa43e197f8”  
],  
“device\_count”: 1,  
“status”: “finished”  
}  
]

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://hub.mender.io/u/peter)\
**Post date:** [December 19, 2019, 4:14pm UTC](https://hub.mender.io/t/cannot-clear-a-deployment-from-server/1370/2 "2019-12-19T16:14:49Z")

</div>

Hello and thank you for using Mender.

could you please paste here exact commands that you use to access API? could you add corresponding GET and DELETE calls with responses from deployments service?  
could you also please provide list of groups and devices (responses from the API calls would be perfect), so I can try to reproduce the error.

peter

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [January 10, 2020, 11:31am UTC](https://hub.mender.io/t/cannot-clear-a-deployment-from-server/1370/3 "2020-01-10T11:31:26Z")

</div>

Hi Peter,

Thank for the response. I have since found another way to achieve what i want.  
For anyone interested, On device I just bump artifact\_name version down in /etc/mender/artifact\_info and then redeploy the same artifact on the server.
