cleanup for image post and event directory deletion