DELETE /kits/{id}/data
Deletes what a kit has stored: its records and its readings' history.
Details #
Returns the counts it cleared as {rows, readings}. The kit's settings and its anchors' health stay.
curl -s -X DELETE -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/kits/mail/data
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X DELETE http://localhost/kits/{id}/data
Delete what a kit has stored. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.