curl --request DELETE \
--url https://api.royalti.io/user/{id} \
--header 'Authorization: Bearer <token>'{}/user/
curl --request DELETE \
--url https://api.royalti.io/user/{id} \
--header 'Authorization: Bearer <token>'{}/user/{userId} endpoint allows users to delete a specific user identified by their unique userId.
Method:DELETE
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| userId | string | The unique identifier of the user. |
const response = await fetch('https://api.royalti.io/user/example-id', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);