Skip to main content
POST
Bulk Delete Workforce Trainings
← Own Workforce API Delete up to 100,000 training records in one call. The response reports what succeeded and what did not, so a partial failure is visible rather than silent. Irreversible: there is no endpoint that recreates a training, only a re-import.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Body

array[string]
required
Training UUIDs to delete. Between 1 and 100,000 entries.
boolean
default:"false"
Group view. false authorizes deletion inside the header organization only; true across the whole accepted family.Ids outside the resolved perimeter are never deleted — they come back in failed_ids.

Response

integer
How many records were deleted
array[string]
Ids of the deleted records
integer
How many ids were not deleted — unknown, already gone, or outside your perimeter
array[string]
Ids that were not deleted
string
Human-readable summary
The call returns 200 OK even when some ids fail. Read failed_count, not the status code.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: the key is invalid, or it does not belong to the organization in x-organization-id — the two are looked up as a pair. A request carrying no credentials at all answers AUTH_REQUIRED instead.

403 Forbidden

Cause: the key’s owner is not an enabled member of the organization, or their role cannot write.

422 Unprocessable Entity

Cause: empty training_ids, more than 100,000 entries, or a value that is not a UUID.

Bulk delete by filters

Delete a filtered set without collecting ids

Delete one training

Single-record deletion