Delete all user accounts on Splunk Enterprise

On Splunk Enterprise only, you can remove all user data on the instance, including user accounts, by using the CLI.

The CLI is not available in Splunk Cloud Platform. There, you can delete accounts using Splunk Web.

Delete all user accounts by typing ./splunk clean CLI command followed by the userdata argument. This deletes all user accounts.

CAUTION: Removing user data is irreversible. If you accidentally delete user data, you must recreate all accounts, including the admin account, manually. Additionally, you must satisfy any password requirements that are in place when you recreate the accounts.

Remove all of the user accounts from the instance

The following command removes all user accounts from the instance. It prompts you before performing the wipe. After you confirm, the instance irrevocably deletes all local user accounts. It does not delete user accounts on external authentication systems.

./splunk clean userdata

Remove the user accounts in the system and skip the confirmation prompt

The following command irrevocably deletes all user accounts on the system and does not prompt you before performing the delete. Use this command carefully as it is impossible to undo the action.

./splunk clean userdata -f