Skip to content

Delete Objects from relation

The API removes specific objects from a relationship with their parent.



Endpoint URL

The is a subdomain assigned to your application. For more information see the Client-side Setup section of this documentation.<table-name>/<parentObjectId>/<relationName> 


Argument                Description
<table-name> Name of the table where which contains the parent object as identified by <parentObjectId>.
<parentObjectId> Id of the object for which the relation will be deleted.
<relationName> Name of the column which identifies the relation within the parent table (identified as <table-name>).

Request Headers

user-token: value-of-the-user-token-header-from-login  


Argument                Description
user-token Optional header. Contains a value returned by Backendless in a preceding user Login API call. If user-token is set in the request, the operation will be executed with the security policy associated with the currently logged in user. This means all permissions associated with the user and the roles assigned to the user will be enforced by Backendless.
Content-Type Must be set to application/json. This header is mandatory.

Request Body

Must be an array of child object IDs as string values.

  "childObjectId1", "childObjectId2"  

Return Value

Error or number of objects the operation deleted for the relation.


The example below deletes a relation between a Person object and its children. The child objects are referenced explicitly in the API call (see the object IDs in the body as "XXXXX-XXXXX-XXXXX-XXXXX" ``and`` "ZZZZ-ZZZZ-ZZZZZ-ZZZZZ").The relation column is address.


Make sure to replace xxxx in the domain name in the sample request below to the one assigned to your application.

curl \  
-H Content-Type:application/json \