Delete user accounts using the CLI
Delete user accounts using the CLI
Remove all the user data (user accounts) from your Splunk installation by typing ./splunk clean followed by the userdata argument. This deletes all the user accounts other than the default user accounts included with Splunk (admin, power, user).
Caution: Removing user data is irreversible; if you accidentally delete user data, you must re-add the accounts manually.
To remove all of the user accounts in the system:
./splunk clean userdata
To remove the user accounts in the system and force Splunk to skip the confirmation prompt:
./splunk clean userdata -f
This documentation applies to the following versions of Splunk: 4.1 , 4.1.1 , 4.1.2 , 4.1.3 , 4.1.4 , 4.1.5 , 4.1.6 , 4.1.7 , 4.1.8 , 4.2 , 4.2.1 , 4.2.2 , 4.2.3 , 4.2.4 , 4.2.5 , 4.3 View the Article History for its revisions.