For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trebellar Platform
DocsGuidesAPI Reference
DocsGuidesAPI Reference
  • API Reference
    • Introduction
  • API Resources
      • GETList People with Asset Filtering
      • POSTBatch Create/Update People
      • DELBatch Delete People
      • PATCHBatch Assign People to Assets
      • DELBatch Delete People-Asset Associations
      • PATCHBatch Add People to Groups
      • PATCHBatch Remove People from Groups
Trebellar Platform
LogoLogo
API ResourcesPeople

Batch Delete People

||View as Markdown|
DELETE
https://api.trebellar.app/api/v2/people/batch/delete
DELETE
/api/v2/people/batch/delete
1import { TrebellarApiClient } from "@trebellar/api-sdk";
2
3async function main() {
4 const client = new TrebellarApiClient({
5 apiKey: "YOUR_API_KEY_HERE",
6 });
7 await client.people.deletePeopleBatch({
8 peopleIds: [
9 "string",
10 ],
11 });
12}
13main();
1{
2 "data": {}
3}
Permanently remove multiple employee records by their IDs. This operation also removes all associated asset assignments and group memberships. Use with caution as this action cannot be undone. Consider updating employment status to inactive instead of deletion for audit trail purposes.
Was this page helpful?
Previous

Batch Create/Update People

Next

Batch Assign People to Assets

Built with

Authentication

X-Trebellar-Api-Keystring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
peopleIdslist of stringsRequired

Response

All specified people records deleted successfully along with their assignments
dataobject

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error