#NEWLINE# def delete_remote_storage( sender , instance , **kwargs ) : #NEWLINE# #INDENT# 'Delete media files from remote storage.\n\n    Iterate through all associated remotely stored media and\n    trigger a delete. This is handled through a signal so it\n    is fired even when performing bulk deletes.\n\n    Signal: pre_delete\n    Sender: Media\n    ' #NEWLINE# from . tasks import delete_media #NEWLINE# for storage in instance . remotestorage_set . all ( ) : #NEWLINE# #INDENT# delete_media . delay ( instance . id )