Skip to main content

Starting March 27, 2026, RC is rebranded as Nexconn. Existing RC SDK customers can continue using this documentation. New customers should refer to the Nexconn developer documentation.

Remove Friends

Remove friends in batches.

Enable the Service

Before calling this API, enable the profile hosting service by submitting a ticket.

Request Method

POST: https://data center domain/friend/delete.json

Rate Limit: 100 requests per second (Note: Counts per batch operation. Removing 10 friends at once counts as 10 requests)

Signature Rule: All server API requests require signature verification. See API Request Signature.

Parameters

The HTTP request body uses application/x-www-form-urlencoded format with these parameters:

ParameterTypeRequiredDescription
userIdStringYesUser ID initiating the friend removal
targetIdsString[]YesList of friend IDs to remove (max 100 per request)

Request Example

POST /friend/delete.json HTTP/1.1
Host: api.rong-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/x-www-form-urlencoded

userId=id1&targetId=id2,id3,id4

Response

Returns a JSON object with this structure:

FieldTypeDescription
codeNumberStatus code (200 indicates success)

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
"code": 200
}