buy
Delete User

Description

Use the Delete User API to delete a user present on your server, by passing the user name of the user. The API response consists of "done" parameter which is "User Deleted Successfully" if the user is deleted successfully.

Parameters

NameMethodValue
DescriptionRequired
actGETusersThe action specified to retrieve data after deleting the UserYes
delete_userPOSTtextThe name of the user to delete. If you want to delete multiple users then pass users in comma seperated (delete_user=user1,user2).Yes
del_sub_accPOSTintThis apply only for reseller account.
del_sub_acc=0 (It will not delete reseller sub accounts . )
del_sub_acc=1 (It will delete reseller sub accounts . )
Yes
skip_resellerPOSTintThis apply only for reseller account.
skip_reseller=0 (It will delete reseller account. )
skip_reseller=1 (It will not delete reseller account. )
Yes

Sample Code

Curl PHP SDK
curl -ku "user:password" "https://hostip:2005/index.php?api=json&act=users&delete_user=user1,user2&del_sub_acc=1&skip_reseller=1"

Output

User deleted successfully
Array ( [actid] => 16726 [msg] => Selected user(s) are being deleted in background. Click here to view the logs )
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list