Splunk Error: insufficient privileges

host="EC2AMAZ-7GATALC" | delete

Error in 'delete' command: You have insufficient privileges to delete events.
The search job has failed due to an error. You may be able view the job in the Job Inspector.

Solution

 User is not having required permission to delete.