You can delete the scheduled report using the following ways,
(1) Using Skedler UI by logging in with the user credentials and click the 'Delete' icon to delete the scheduled report.
(2) Using the curl command in terminal - When a logged in user creates a report it gets saved as reportName_loggedInUsername ie if a report Test is created by XYZ user then the report is saved as Test_xyz in Elasticsearch.
The curl command given below deletes all the report created by the logged in user ie xyz user from Elasticsearch,
curl -XPOST -u <shieldUsename> <elasticsearchURL_withPort>/<skedlerIndex>/jobs/_delete_by_query?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"wildcard": {
"_uid": "*<logged_in_username>"
}
}
}
'
For example, in this case <logged_in_username> is replaced by xyz
(3) Using Kibana Dev Tools - Copy the below query also replace the <skedlerIndex> with your Skedler index and <logged_in_username> is the username for which you want to delete the scheduled and then run the query in the Kibana Dev Tools.
POST /<skedlerIndex>/jobs/_delete_by_query?pretty
{
"query": {
"wildcard": {
"_uid": "*<logged_in_username>"
}
}
}
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article