Delete people in bulk. Provide ids to delete specific people, or set include to false to delete every person matching the query filters (and every person when no filters are given). Narrow the target set with the same parameters as the people search. Only a super user can delete a super user. A selection that matches any person needs the permission shown above, and one that matches any business profile needs the Limited Write Contributions or Full Write Accounting permission; a selection matching both needs both (403 otherwise, a select-all included). While multi-campus is on, explicit ids that include a person the caller can see (in full or in the member directory) who belongs only to campuses outside the caller's access answer 403 with outside_access_delete_desc; a person who also belongs to such campuses needs the permission at every campus of their set, and explicit ids that include one answer 403 with shared_record_delete_desc (no_campus_rows_record_delete_desc when they have organizations and no campus). When explicit ids include both kinds, the answer is outside_access_delete_desc; either way nothing is deleted. A profile with no campus and no organization needs a caller with no campus limit and no restriction on that permission: explicit ids that include one answer 403 with every_campus_record_delete_desc (every_campus_organization_record_delete_desc while multi-org is on), and a select-all leaves it in place. An id the caller cannot see at all is neither deleted nor counted. A select-all leaves both kinds in place, and with family true family members outside the caller's access are left in place. A business profile is held to the same rules on its business permission (Limited Write Contributions or Full Write Accounting) at every campus of its scope (its campuses, or with none the campuses of its organizations): explicit ids that include one outside the caller's access answer 403 with outside_access_delete_desc, explicit ids that include one shared with campuses outside it answer 403 with shared_record_delete_desc, and a select-all leaves such businesses in place too. The response reports deleted, the profiles deleted (family members included), and skipped, the people a select-all and the family members a delete with family true left in place because they sit outside the caller's access, wholly or in part (0 for explicit ids without family).
Required permission: Full Write People
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Authentication is required, or the Ocs-Api-Key header is missing or invalid.
