How can I delete objects belonging to a service path that I don’t remember?

If you want to delete an object from Fiware Orion, you need to provide it with ServicePath, then how to delete an element if you do not know its path to the service?

Another question, more or less related (How to restore any path to the organization’s service)

+4
source share
1 answer

Currently, the Orion API does not allow such an operation directly, but as a workaround, you can find out the service path to which the object belongs, with a query in the MongoDB database.

, Room1, Room, (.. orion), ( , MongoDB ).

echo 'db.entities.find({"_id.id": "Room1", "_id.type": "Room"}, {_id: 1})' | mongo orion --quiet

:

{ "_id" : { "id" : "Room1", "type" : "Room", "servicePath" : "/path" } }

servicePath (/path ).

+1

All Articles