Skip to main content
18-Opal
Jan 23, 2018 2:08 AM UTC
Solved

how to delete property via service?

hi, i'm search how to delete property via service

that service didn't find snippet or generic service

how can i delete property using service?

thanks

VelkumarAnswer
19-Tanzanite
Jan 23, 2018 6:00 AM UTC

Hi,

You can use "RemovePropertyDefinition" Service to delete property from thing

4 replies

Velkumar19-TanzaniteAnswer
19-Tanzanite
Jan 23, 2018 6:00 AM UTC

Hi,

You can use "RemovePropertyDefinition" Service to delete property from thing

Translate
1-Visitor
Jan 23, 2018 8:32 AM UTC

Oh this make more sense than my answer ^^

Translate
1-Visitor
Jan 23, 2018 7:28 AM UTC

I'm not sure if this is possible. But maybe you can create a work around (untested). You can create a new thing with the EntityServices and add the property that you still want to have with AddPropertyDefinition of the new thing. And than you can copy the values of the old thing to the new thing and delete the old one.

Translate