# How to remove the \_msgid?

**URL:** https://discourse.nodered.org/t/how-to-remove-the-msgid/77386
**Category:** General
**Created:** [9 April 2023 14:07 UTC](https://discourse.nodered.org/t/how-to-remove-the-msgid/77386 "2023-04-09T14:07:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dreamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dreamer/32/78659_2.png) [@Dreamer](https://discourse.nodered.org/u/Dreamer)
#### Post date: [9 April 2023 14:07 UTC](https://discourse.nodered.org/t/how-to-remove-the-msgid/77386/1 "2023-04-09T14:07:57Z")

</div>

Hi There, how can I remove the "\_msgid" from the Object array? I want to store the data "PIR01" in InfluxDB, but not the msgid.The msg Object looks like this:

`{"PIR01":0,"_msgid":"7fa2112a.cc128"}`

PLS help! 🙂

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [9 April 2023 14:15 UTC](https://discourse.nodered.org/t/how-to-remove-the-msgid/77386/2 "2023-04-09T14:15:08Z")

</div>

Store your data in a msg property and use that for the database. I.e. usually folk use `msg.payload` and therefore `msg._msgid` is of no consequence.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 April 2023 14:51 UTC](https://discourse.nodered.org/t/how-to-remove-the-msgid/77386/3 "2023-04-09T14:51:52Z")

</div>

Assuming that you want to use node-red-contrib-influxdb, then the data for the db must be in msg.payload, as described in the node's help text. Therefore msg.\_msgid is irrelevant. It does not matter whether it is there or not.

---

<div class="post-metadata">

### Author: ![Dreamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dreamer/32/78659_2.png) [@Dreamer](https://discourse.nodered.org/u/Dreamer)
#### Post date: [9 April 2023 19:38 UTC](https://discourse.nodered.org/t/how-to-remove-the-msgid/77386/4 "2023-04-09T19:38:24Z")

</div>

Oh nice, now it works! Thanks! 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [8 June 2023 19:38 UTC](https://discourse.nodered.org/t/how-to-remove-the-msgid/77386/5 "2023-06-08T19:38:27Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
