Deleting User Accounts

Deleting User Accounts

The delete user account operation allows you to remove a single or all user account from the Users content type.

Single User

To delete a user of your application, you have to execute the following code snippet:

public void deleteUserById(EverliveApp app, UUID userId)
{
    app.workWith().users().deleteById(userId).executeAsync();
}

Multiple Users

To delete all users of your application with a single operation, you have to execute the following code snippet:

public void deleteAllUsers(EverliveApp app)
{
    app.workWith().users().delete().executeAsync();
}

You can also delete users by filter.

public void deleteUsersByFilter(EverliveApp app, Date date)
{
    app.workWith().users().
      delete().
      where(new ValueCondition("CreatedAt", date, ValueConditionOperator.GreaterThan).
      executeAsync();
}
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.