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.
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:
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