Bulk Delete by Filters
Bulk Delete by Filters
Delete all employees matching filter criteria
POST
Bulk Delete by Filters
Bulk Delete by Filters
Delete all employees that match the given filter criteria. Uses the same filters as the list endpoint. Requires afilter_hash for optimistic concurrency — the hash must match what the server computes for the same filters, ensuring the user deletes exactly what they saw.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
Hash from the list endpoint response (
filter_hash field). Prevents stale deletes.Query Parameters (Filters)
Free-text search across employee fields
Filter by transport type (car, bus, metro, train, bicycle, etc.)
Filter by employee situation
Filter by calculation status:
pending, active, errorFilter by survey response medium
Filter by bulk-upload file UUIDs
Filter records created on or after this datetime (ISO 8601)
Filter records created on or before this datetime (ISO 8601)
Filter by CO2e calculation status
Response
Total number of employees processed
Number of employees successfully deleted
Number of employees that failed to delete
Details of failed deletions
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization409 Conflict
Cause: Thefilter_hash doesn’t match the current filter state — data changed since the list was loaded
422 Unprocessable Entity
Cause: No filter parameters provided (safety check to prevent accidental mass deletion)Related Endpoints
Bulk Delete
Delete employees by specific IDs
List Employees
Retrieve all employees with filtering and pagination

