"dropAccounts"
(jsonAction)
JSON ADMIN "dropAccounts"
action marks an account as dropped from the server
The "dropAccounts"
action marks an account as dropped from the server.
Request examples
{
"api": "admin"
"action": "dropAccounts",
"params":
{
"usernames": [ "NewAccount1" ]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
{
"api": "admin",
"action": "dropAccounts",
"params": {
"usernames": [
"NewAccount3",
"NewAccount4"
]
},
"requestId": "1",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Note
If the target object does not exist, the response returns success and the debug property contains a warning that the object was not found.
Success
{
"requestId": "00000004",
"debugInfo": {
"request": {
"api": "admin",
"action": "dropAccounts",
"params": {
"usernames": [
"NewAccount1"
]
},
"requestId": "1",
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
},
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
{
"requestId": "1",
"debugInfo": {
"request": {
"api": "admin",
"action": "dropAccounts",
"params": {
"usernames": [
"NewAccount1"
]
},
"requestId": "1",
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
},
"warnings": [
{
"code": 101,
"message": "Not able to remove account [NEWACCOUNT1] - ISAM error [0]"
}
]
},
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Use the dropAccounts API action to mark an account as dropped from the server
Table 1.
"params"
property summariesProperty | Description | Default | Type | Limits (inclusive) |
---|---|---|---|---|
usernames | (optional) specifies the names of the accounts to be dropped |
| array |