Delete Data
Several methods allow to delete already stored data.
Delete Consumers
Deletes all data of the specified consumer.
Request
POST /insights/v1/storage/consumers/delete HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
"insights_consumer_id": string
}
insights_consumer_id String, always present
The identifier of the consumer whose data should be deleted.
Response
The call will return an empty body response like this:
HTTP/1.1 200 OK
Delete Accounts
Request
Deletes all data of the specified accounts.
POST /insights/v1/storage/accounts/delete HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
"insights_consumer_id": string,
"insights_account_ids": Array<string>
}
insights_consumer_id String, always present
The identifier of the consumer whose accounts should be deleted.
insights_account_ids String[], always present
A list of identifiers for accounts to be deleted.
Response
The call will return an empty body response:
HTTP/1.1 200 OK
Delete Transactions
Request
Deletes the specified transactions.
POST /insights/v1/storage/transactions/delete HTTP/1.1
Content-Type: application/json; charset=utf-8
Authorization: Token <Token>
Host: <Host>
{
"insights_consumer_id": string,
"insights_account_id": string,
"insights_transaction_ids": Array<string>
}
insights_consumer_id String, always present
The identifier of the consumer whose transactions should be deleted.
insights_account_id String, always present
The identifier of the account for which transactions should be deleted.
insights_transaction_ids String[], required
The list of identifiers for transactions to be deleted.
Response
The call will return an empty body response:
HTTP/1.1 200 OK