Skip to content
Support

Delete feedback records by user ID

DELETE/v1/feedback-records

Permanently deletes feedback record data points for the specified user_id/data subject. Omit tenant_id to delete that user_id across all tenants for GDPR Article 17 (Right to Erasure) requests. Provide tenant_id to restrict deletion to that tenant only. Derived embeddings for deleted feedback records are removed by database cascade. The operation is idempotent; repeated calls return deleted_count 0 after matching records have already been deleted.

Query ParametersExpand Collapse
user_id: string

Delete records matching this user ID (required). NULL bytes not allowed.

minLength1
maxLength255
tenant_id: optional string

Optional tenant scope. Omit this parameter to delete all records matching user_id across tenants; provide it to delete only records for this tenant. Empty strings and NULL bytes are not allowed.

minLength1
maxLength255
ReturnsExpand Collapse
deleted_count: number

Number of records deleted

formatint64
message: string

Human-readable status message

Delete feedback records by user ID

curl http://localhost:8080/v1/feedback-records \
    -X DELETE \
    -H "Authorization: Bearer $HUB_API_KEY"
{
  "deleted_count": 42,
  "message": "Successfully deleted 42 feedback records"
}
Returns Examples
{
  "deleted_count": 42,
  "message": "Successfully deleted 42 feedback records"
}