# Delete device inventory attributes

**URL:** <https://hub.mender.io/t/delete-device-inventory-attributes/1367>\
**Category:** General Discussions\
**Created:** [December 17, 2019, 11:13am UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367 "2019-12-17T11:13:16Z")\
**Posts on this page:** 6\
**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 17, 2019, 11:13am UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367/1 "2019-12-17T11:13:17Z")

</div>

I am currently testing uploading inventory attributes to server for client. I have attributes that are no longer valid. How do you delete the attributes for a device as when i decommission a device with ‘dismiss’ and then re-authorise it the previous attributes still exist.

have tried mender-cli and I cant seem to find an option  
have tried mender-backend-cli and authentication delete gives me Resource not found errors.

Is there a command in the docker container to delete the attributes for a device?

---

<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 17, 2019, 11:40am UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367/2 "2019-12-17T11:40:13Z")

</div>

Not to worry, solved it by using DELETE rest api and curl

[https://docs.mender.io/2.2/server-integration/using-the-apis](https://docs.mender.io/2.2/server-integration/using-the-apis)

---

<div class="post-metadata">

**Author:** ![lizziemac](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lizziemac/32/691_2.png) [@lizziemac](https://hub.mender.io/u/lizziemac)\
**Post date:** [July 21, 2020, 4:55pm UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367/3 "2020-07-21T16:55:25Z")

</div>

Is there a place I can find the specific path needed to delete an attribute? I’ve only been able to use to API to find devices with the custom attribute, but not to delete the specific attribute. I’ve poked around the open source code in inventory for a clue but with no luck.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [July 22, 2020, 12:57am UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367/4 "2020-07-22T00:57:01Z")

</div>

Hi @lizziemac, I’m not completely clear on what you are trying to do but [this link to our docs](https://docs.mender.io/hosted/client-configuration/identity) may help.

Drew

---

<div class="post-metadata">

**Author:** ![lizziemac](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lizziemac/32/691_2.png) [@lizziemac](https://hub.mender.io/u/lizziemac)\
**Post date:** [July 22, 2020, 7:10pm UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367/5 "2020-07-22T19:10:34Z")

</div>

Thanks Drew, I’m trying to remove attributes I made via mender-inventory scripts that I no longer want (i.e. if I made an attribute named `test_attr` with a value of `hello` on a sample device, I want to delete `test_attr` on any devices I’ve created it on, as well as the value). In my case, it’s only on one device, and I don’t want to delete the device, just the attribute I made on it, to clean up the device information.

I can’t seem to find anything in the docs to do that. If it isn’t possible, it’s not a big deal, but would be nice to remove all the things I’m not using

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [July 22, 2020, 9:01pm UTC](https://hub.mender.io/t/delete-device-inventory-attributes/1367/6 "2020-07-22T21:01:00Z")

</div>

Correct, removing inventory attributes is not currently supported.
