delete demousers - UpendoVentures/Upendo-Dnn-Prompt GitHub Wiki

delete-demousers

This command will delete the demo users created by the set-demousers command. If the user account(s) are not found, it just keeps going and ignores the missing user account.

When deleting the demo user accounts, it attempts to find the user accounts by username. These usernames are hard-coded in the set-demousers command, as this is not meant to be used in production. So, there is little to no chance to impact an actual end-user. If you're going to use this command in production, you should first test in a staging instance to see if the user names exist or not.

Added In Version

Command

Command Description
delete-demousers Attempts to delete the user accounts created by the set-demousers command.

Arguments

This prompt does not have any flags at this time.

Output

If successful, you should see a message for each demo user deleted, stating the result of the deletion of the account.

User Deleted:

Successfully deleted user account: Jane Doe ([email protected]).  

User Doesn't Exist:

User account does not exist, not deleted: Jane Doe ([email protected]).  

Additional Notes

This command has a companion command, set-demousers. The set-demousers command will create the user accounts this delete-demousers command is attempting to delete.

Screenshots

Users Exist on Delete
image

Users Don't Exist on Delete
image