had to initialize MediaAttachment model in the afterDelete to get it to run