Skip to main content
Version: V2 (Ignition 8.1)

system.mes.personnel.deletePeople

Description​

Deletes multiple Person records by their IDs or usernames. This cannot delete any people that have references to them.

Permissions​

This method requires the PERSONNEL.WRITE.DELETE permission.

Syntax​

system.mes.personnel.deletePeople(ids)

Parameters​

ParameterTypeNullableDescription
idsOrUsernamesList<String>FalseList of IDs or usernames of the people to delete.

Returns​

If successful, an ApiResponse object is returned with the success bool set to true. If unsuccessful, an exception is thrown or an ApiResponse object is returned with details about the encountered error.

NameTypeDescription
successBooleanIndicates if the delete was successful.
messageStringThe reason why the deletion was successful or unsuccessful.
dataStringThe data associated with the deletion.
errorStringThe errors associated with the deletion.

Code Examples​

# Delete multiple people by IDs
system.mes.personnel.deletePeople(['01JAP8RJBN-8ZTPXSGY-J9GSDPE1', '01JAP8R5RT-3FPXQABY-7KQZT6VF'])