Delete people

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

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Text matched against first, middle, last and former names plus aliases. When multiple words are given, every word must match.

boolean

Whether to return archived (true) or active (false) profiles. If omitted, both are returned.

boolean

Whether to return only profiles waiting for staff to verify a self-registered login (true) or only those that aren't (false). Requires people_read_limited. If omitted, both are returned.

double

Return profiles whose id is greater than or equal to this value.

double

Return profiles whose id is less than or equal to this value.

string

Return profiles whose first name contains the given text.

string

Return profiles whose last name contains the given text.

string

Return profiles whose last name starts with the given letter.

string

Return profiles whose email address (their own or their family's) contains the given text.

string

Return profiles whose phone number (their own or their family's) contains the given digits.

int32

The envelope number assigned to the person. Use -1 to return profiles with no envelope number.

string

The street address.

string

The city.

string

The state or province.

string

The postal code.

string

The country.

boolean

Whether this address has to carry a postal code. Only US and Canadian addresses do; a blank country counts as the US.

string

Comma-delimited list of record type ids. Values come from /api/property_values/person_record_type/values.

string

Comma-delimited list of gender ids. Values come from /api/property_values/gender/values.

string

Comma-delimited list of language ids. Values come from /api/property_values/languages/values.

string

Comma-delimited list of ethnicity ids. Values come from /api/property_values/ethnicities/values.

string

Comma-delimited list of marital status ids. Values come from /api/property_values/marital_status/values.

string

Comma-delimited list of household role ids. Values come from /api/property_values/household_roles/values.

string

Comma-delimited list of race ids. Values come from /api/property_values/race/values.

string

Comma-delimited list of occupation ids. Values come from /api/property_values/occupations/values.

string

Comma-delimited list of campus (location) ids. Use -1 to include profiles with no campus. Ignored while multi-campus is off.

string

Organization ids, comma-separated; honoured only while multi-org is on. A record matches when it is scoped to one of them or has a campus in one of them.

int32

Match dates falling in this month (1-12).

int32

Match dates falling on this day of the month (1-31).

int32

Match dates falling in this year.

date-time

Match dates falling within a window starting at this date.

date-time

Match dates falling within a window ending at this date.

int32

Match dates falling in this month (1-12).

int32

Match dates falling on this day of the month (1-31).

int32

Match dates falling in this year.

date-time

Match dates falling within a window starting at this date.

date-time

Match dates falling within a window ending at this date.

double

Return people whose age is greater than or equal to this value.

double

Return people whose age is less than or equal to this value.

boolean

Whether the person has at least one active recurring giving schedule. Refused (403) for a caller without people read.

string

Return profiles created by the given user name. Refused (403) for a caller without people read.

string

Free text search across the profile's names, former names, email, phone and address.

Body Params

The deletion selection.

ids
array of doubles | null

The ids the operation applies to: an include list by default, or an exclude list when include is false. For deletes, required unless include is false.

ids
boolean | null

Whether ids is an include list (true, default) or an exclude list (false). Setting include to false with no ids applies the operation to every record matching the query filters.

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