def delete_file(self, path, prefixed_path, source_storage):
        if self.comparison_method == 'modified_time':
            return CollectStatic.delete_file(self, path, prefixed_path, source_storage)
        elif self.storage.exists(prefixed_path):
            should_delete = self.compare(path, prefixed_path, source_storage)
            if should_delete:
                if self.dry_run:
                    self.log(u"Pretending to delete '%s'" % path)
                else:
                    self.log(u"Deleting '%s'" % path)
                    self.storage.delete(prefixed_path)
            else:
                self.log(u"Skipping '%s' (not modified)" % path)
                return False
        return True
dataset/ETHPy150Open hzdg/django-ecstatic/ecstatic/management/commands/eccollect.py/CollectNewMixin.delete_file/original