We have a build plan (configured by bamboo yml file) that copies files to AWS S3. If a branch build runs it creates these files but we'd like to remove them when the branch is deleted.
We previously used gitlab and it had this ability but I haven't been able to find any hook or trigger in bamboo that would run a job/task just before the branch plan is deleted. Any ideas on how to do it?