Custom rake task for bulk account deletion on Faspex

Rake tasks are scripts that allow you to retrieve, delete or update information on your Faspex server using the command line. This article describes a custom rake task available for bulk deleting Faspex accounts.

Please note that you must install this rake task as it is not yet included by default on Faspex. For more information on custom rake tasks and how to install them, see this article (Custom rake tasks on Faspex).

Usage

This rake task is used to delete a list of Faspex accounts specified in a text file.

The syntax is the following:

asctl faspex:rake custom:delete_user_list -- [options] 
short form long form description                                                                                      
-ffile --file=file full path to file name (required)
-h --help print out help information for this rake task

You must specify the full path of the file containing the list of users to delete. The file should list the users one per row, like the following:

user1
user2
user3

Examples

To delete a list of users defined in the file /tmp/user.txt, you would use the following:

asctl faspex:rake custom:delete_user_list -- --file=/tmp/users.txt

Below is an example of what the output could look like:

user1 successfully deleted
user2 successfully deleted user3 successfully deleted
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk