Delete a Person

With this method, you delete a Person with the specified ID.

With this method, you delete the person with the specified ID from the system. If a person is deleted, all assigned relationships to other business partners remain untouched, thus leaving the system in an inconsistent state. To prevent such inconsistencies, choose one of the following approaches:

  • Before deleting a person, check whether any relationships to other objects exist. Start with deleting these relationships, and then delete the person.
  • Use the onboarding services for persons instead. These services are specially designed to handle not only the person object, but also its relationships to other objects.

From a technical perspective, calling this method results in the following behavior: The system creates a new instance of a DeletedPerson object and copies all field values of the deleted Person object to the new DeletedPerson object. That is, the Person is cloned into a DeletedPerson. The DeletedPerson object can be retrieved by an administrator with special authorizations.

If the person is successfully deleted, the server sends HTTP response code 204. Any other code indicates an error.

Request

URI: /Persons('<businessPartnerID>')

HTTP Method: DELETE

Permissions:

<bp>.r

<bp>.d

<bp>.tenant.r

Request Header Fields

Name Required Description
X-CSRF-Token Yes Cross-site request forgery token
If-Match Yes Check if cached version matches server version of the person

Request Parameters

Parameter Required Data Type Description Parameter Type
businessPartnerID Yes string technical ID of the Person object Path

Request Example

/Persons('adbb2c0fdb0a4b9e99327a52c41fc720')

Response

Response Status and Error Codes

Code Reason
204 Person deleted successfully