# After deleting all the measurement entries "c8y\_SupportedMeasurements" and "c8y\_supportedSeries" are not cleared. Want to delete the fragment and series names in those managed object attributes too

**URL:** <https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [May 12, 2022, 5:32am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712 "2022-05-12T05:32:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [May 12, 2022, 5:32am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/1 "2022-05-12T05:32:07Z")

</div>

#### What product/components do you use and which version/fix level?

cumulocity

#### Are you using a free trial or a product with a customer license?

Customer license

#### What are trying to achieve? Please describe in detail.

After deleting all the measurement entries, the “c8y\_SupportedMeasurements” and “c8y\_supportedSeries” are not cleared inside managed objects. Want to delete the fragment and series names in those managed object attributes too if all the measurements have been deleted in that device. I understand that these are cumulocity’s built-in objects inside managed object. But how to clear that as well? Kindly anyone help.

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

No Error.

 ![cs8supportedseriesnotdeleted](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/a/1/a1bd5f69440b94038b1c6e3a23a5f44c437868f5.png)

#### Have you installed latest fixes for the products

---

<div class="post-metadata">

**Author:** ![Nick\_Ponomar1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/nick_ponomar1/32/2892_2.png) [@Nick\_Ponomar1](https://community.cumulocity.com/u/Nick_Ponomar1)\
**Post date:** [May 12, 2022, 6:50am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/2 "2022-05-12T06:50:17Z")

</div>

Supported measurements is an array. Have you tried passing an empty array?

```json
{
  "c8y_SupportedMeasurements": []
}

```

---

<div class="post-metadata">

**Author:** ![Christian\_Herzog](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_herzog/32/32209_2.png) [@Christian\_Herzog](https://community.cumulocity.com/u/Christian_Herzog)\
**Post date:** [May 12, 2022, 8:22am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/3 "2022-05-12T08:22:11Z")

</div>

“c8y\_SupportedMeasurements” and “c8y\_supportedSeries” are refreshed asynchronous, as far as I remember 2 times a day. Unused c8y\_SupportedMeasurements and c8y\_supportedSeries are removed automatically.

---

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [May 12, 2022, 8:30am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/4 "2022-05-12T08:30:50Z")

</div>

Yes, I have tried both

“c8y\_SupportedMeasurements”:

and

“c8y\_SupportedMeasurements”: null

---

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [May 12, 2022, 8:36am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/5 "2022-05-12T08:36:22Z")

</div>

I am looking to delete the entries manually through PUT API. But am not able to do which is needed for logic to create a new managedobject attribute with an entirely new set of fragment and series names.

May be as you say, I will check if the managed object’s inner attributes are deleted if all measurements are deleted for a device and unused. But if you find any to delete it explicitly please pass you comments.

---

<div class="post-metadata">

**Author:** ![Christian\_Herzog](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_herzog/32/32209_2.png) [@Christian\_Herzog](https://community.cumulocity.com/u/Christian_Herzog)\
**Post date:** [May 12, 2022, 2:21pm UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/6 "2022-05-12T14:21:00Z")

</div>

“c8y\_SupportedMeasurements” and “c8y\_supportedSeries” are automatically created when you create a new measurement e.g. with:  
POST {{baseUrl}}/measurement/measurements

body:

```auto
{
    "source": {
        "id": "{{managed object id}}"
    },
    "type": "abc",
    "time": "{{$isoTimestamp}}",
    "c8y_Steam": {
        "Temperature": {
            "value": 95,
            "unit": "C"
        }
    }
}

```

I don’t know another way to delete unused “c8y\_SupportedMeasurements” and “c8y\_supportedSeries” than to wait until the background functionality has removed it.

---

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [June 16, 2022, 8:50am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/7 "2022-06-16T08:50:06Z")

</div>

Thank you Christian. I am just nullifying the values. Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 14, 2022, 8:51am UTC](https://community.cumulocity.com/t/after-deleting-all-the-measurement-entries-c8y-supportedmeasurements-and-c8y-supportedseries-are-not-cleared-want-to-delete-the-fragment-and-series-names-in-those-managed-object-attributes-too/7712/8 "2022-09-14T08:51:01Z")

</div>

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