1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
I don't think there is a way to delete it directly as of April 2024.
Therefore, I think it is better to deregister the old batch job definition and wait for it to be automatically deleted after 180 days.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/batch/deregister-job-definition.html
Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
That's good information. How do others handle this situation? Does everyone just let the old job definitions just pile up? Is there some automated way to deregister them?
In my case, I tried to deregister things that I no longer needed. Since there is no automatic deregistration function, I think the only option is to create a Lambda etc. and periodically deregister.