Clear all search history
Permanently delete every persisted search row owned by, or shared with, the authenticated user, along with the citation rows those searches reference. The action cannot be undone.
Scoped to the caller's org and limited to rows where isDeleted: false and isArchived: false. If nothing matches (including the case where every row is already archived), the endpoint returns 404 rather than a successful no-op.
Query parameters
Restrict the deletion to rows whose title or messages.content matches this case-insensitive substring. Special regex characters are escaped before the lookup; values over 1000 chars are rejected with 400.
Restrict the deletion to rows with this isShared value ('true' / 'false').
ISO 8601 lower bound for createdAt. Combined with endDate to scope which rows are deleted.
ISO 8601 upper bound for createdAt.
Response
Search history deleted successfully.