Delete person

Permanently delete a person and their associated records. Set family to true to also delete the rest of the person's family. To reversibly hide a person instead, archive them with /api/people/{id}/archive. Only a super user can delete a super user. For business profiles, deletion requires the Limited Write Contributions or Full Write Accounting permission instead of the one shown above. While multi-campus is on, a person the caller can see (in full or in the member directory) who belongs only to campuses outside the caller's access answers 403 with outside_access_delete_desc, and a person who also belongs to such campuses needs the permission at every campus of their set and answers 403 with shared_record_delete_desc (no_campus_rows_record_delete_desc when they have organizations and no campus); with family true, family members the caller may not delete that way are left in place. A person with no campus and no organization needs a caller with no campus limit and no restriction on that permission, and answers 403 with every_campus_record_delete_desc (every_campus_organization_record_delete_desc while multi-org is on) otherwise. A person the caller cannot see at all is neither deleted nor counted (200). 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), answering 403 with outside_access_delete_desc or shared_record_delete_desc. The response reports deleted, the profiles deleted (family members included), and skipped, the family members left in place because they sit outside the caller's access, wholly or in part (0 without family).

Required permission: Full Write People

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required
≥ 1

The id of the person to delete.

Body Params

Delete options.

boolean

When true, the same action cascades to the rest of the person's family members.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json