Knowledgebase
Can I delete QuickBlox user account within the application?
Posted by on 06 March 2014 02:01 PM

Can I delete QuickBlox user account within the application?

It is possible to delete only your own account, but not other users accounts (since you are not the owner). For this you can use the following:


iOS

You can delete only current user
[QBRequest deleteCurrentUserWithSuccessBlock:errorBlock:];

Android
QBUsers.deleteUser(548, new QBCallbackImpl() {
    @Override
    public void onComplete(Result result) {
        if (result.isSuccess()) {
            // User was deleted
        } else {
            Log.e("Errors",result.getErrors().toString());
        }
    }
});

If you want to delete any user:

1. Go to http://admin.quickblox.com/apps

2. Create new App

3. Then go to edit panel http://admin.quickblox.com/apps/<your_application_id>/edit

4. And straight to Users(you have that button on the left side panel) http://admin.quickblox.com/apps/<your_application_id>/service/users

5. You will see only one created default user

This user has super admin privileges.

Only this user can delete everything in your application

Login with that default user and then with JS api you can delete any user you want

(8 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: