How can I clear/delete all events for a specific device and a specific event type? I tried the a DELETE .../event/events?source=123456&type=c8y_LocationUpdate
but this doesn't work.
Asked
Active
Viewed 128 times
0

d4rty
- 3,970
- 5
- 34
- 73
2 Answers
1
Mass deletion of events is not allowed. Only one event can be deleted at a time with:
DELETE .../event/events/<id>
Alternatively retention rules can be set to delete events older than X days.

Georgi
- 165
- 1
- 9
0
I don't why it isn't working for you but I delete my events using the syntax you provided, d4rty:
DELETE <tenant ID>/event/events?source=12345
and it's working just fine.

Gaetan L.
- 649
- 6
- 20