SysDeleteChildProfile
Deletes a specified user's child profile in the given child app. Invalidates any active sessions for the child profile before deletion. Also deletes any descendants of the child profile.
| Service | Operation |
|---|---|
| identity | SYS_DELETE_CHILD_PROFILE |
Method Parameters
| Parameter | Description |
|---|---|
| appId | The child app id. Also accepted as gameId for legacy compatibility. |
| parentProfileId | The parent profile id. |
| profileId | The child profile id to delete. If omitted, the singleton child profile is used. |
Usage
http://localhost:3000
- C#
- C++
- Obj-C
- Java
- JavaScript
- Dart
- Roblox
- GDScript
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// N/A
N/A
var appId = "the-child-app-id";
var parentProfileId = "the-parent-profile-id";
var profileId = "the-child-profile-id";
var identityProxy = bridge.getIdentityServiceProxy();
var postResult = identityProxy.sysDeleteChildProfile(appId, parentProfileId, profileId);
if (postResult.status == 200) {
// Success!
}
{
"service": "identity",
"operation": "SYS_DELETE_CHILD_PROFILE",
"data": {
"appId": "the-child-app-id",
"parentProfileId": "the-parent-profile-id",
"profileId": "the-child-profile-id"
}
}
JSON Response
{
"data": {
"profileId": "the-child-profile-id",
"appId": "the-child-app-id"
},
"status": 200
}