def cleanup_version(sender, instance, **kw):
 if kw.get('raw'):
  return
 for file_ in instance.files.all():
  cleanup_file(file_.__class__, file_)

def cleanup_version ( sender , instance , ** kw ) : if kw . get ( 'raw' ) : return for file_ in instance . files . all ( ) : cleanup_file ( file_ . __class__ , file_ )
on delete of the version object call the file delete and signals .