# Removing inventory attribute

**URL:** <https://hub.mender.io/t/removing-inventory-attribute/6092>\
**Category:** General Discussions\
**Created:** [August 8, 2023, 9:38am UTC](https://hub.mender.io/t/removing-inventory-attribute/6092 "2023-08-08T09:38:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arp\_insens](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@arp\_insens](https://hub.mender.io/u/arp_insens)\
**Post date:** [August 8, 2023, 9:38am UTC](https://hub.mender.io/t/removing-inventory-attribute/6092/1 "2023-08-08T09:38:13Z")

</div>

Hello,

I’m exploring Mender’s inventory scripts and wondered if it’s now possible to remove an inventory attribute. I saw a post saying it wasn’t supported, I’m using **mender client 3.5.0** and **mender platform 3.4.0**. Any updates on this?

> [@Delete device inventory attributes](https://hub.mender.io/t/delete-device-inventory-attributes/1367):
>
> 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…

Thanks!

---

<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:** [August 8, 2023, 8:21pm UTC](https://hub.mender.io/t/removing-inventory-attribute/6092/2 "2023-08-08T20:21:48Z")

</div>

Hi @arp_insens,

Without having tested it - just guessing - what about setting to “” or `null`?

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![arp\_insens](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@arp\_insens](https://hub.mender.io/u/arp_insens)\
**Post date:** [August 9, 2023, 7:15am UTC](https://hub.mender.io/t/removing-inventory-attribute/6092/3 "2023-08-09T07:15:51Z")

</div>

Hello @TheYoctoJester,

Yes, but I was hoping for an even “cleaner” approach. My intention is to remove any unused attributes entirely, retaining only the necessary ones along with some custom additions. I believe there must be a more efficient solution than distributing a script artifact and repeatedly using “sed” of an empty string within every mender-inventory script.  
If you have a better approche I am open to suggestions 🙂  
ARP

Edit: I need to apply this to all my devices, which is why I need a cleaner ans easier way
