I have a job run every 5 mins and it will upload a file to AWS, after it runs it would create an incident which I don't want to keep, is there any out of box automation that can delete incident as well as the artifact the job created to save some space?
You could use the XSOAR File Management integration (community contributed), and add a step into your playbook to delete the file once it's uploaded to AWS.
I wouldn't worry about deleting the Incident, but you can do it via a command in the Core REST API integration.
You would need another job to do it though, won't work if the Incident running your playbook tries to delete itself, then you'd need another playbook to delete that one, and so on (Basically Inception).
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!