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:

var el = new Everlive('your-app-id');
el.Users.destroySingle({ Id: 'item-id-here' },
    function(){
        alert('User successfully deleted.');
    },
    function(error){
        alert(JSON.stringify(error));
    });

Multiple users

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

var el = new Everlive('your-app-id');
el.Users.destroy()
    .then(function (data) {
        alert('Users successfully deleted.');
    },
    function(error){
        alert(JSON.stringify(error));
    });

You can also delete users by filter.

var el = new Everlive('your-app-id');
el.Users.destroy({ 'Username': 'John Smith' }, // filter
    function (data) {
        alert('Users successfully deleted.');
    },
    function(error){
        alert(JSON.stringify(error));
    });

Instead of passing a plain object for filter, you can pass an instance of Everlive.Query.

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.