Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

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 async Task DeleteUserById(EverliveApp app, Guid userId)
{
    await app.WorkWith().Users().Delete(userId).ExecuteAsync();
}

Multiple users

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

public async Task DeleteAllUsers(EverliveApp app)
{
    await app.WorkWith().Users().DeleteAll().ExecuteAsync();
}

You can also delete users by filter.

public async Task DeleteUsersByFilter(EverliveApp app, DateTime date)
{
    await app.WorkWith().Users().Delete().Where(u => u.CreatedAt > date).ExecuteAsync();
}
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.