diff --git a/lib/rucio/rse/protocols/gfal.py b/lib/rucio/rse/protocols/gfal.py index 08c5d91267..bd0cf62eb0 100644 --- a/lib/rucio/rse/protocols/gfal.py +++ b/lib/rucio/rse/protocols/gfal.py @@ -489,12 +489,9 @@ def __gfal2_rm(self, paths): try: for path in paths: - if self.__gfal2_exist(path) == 0: - ret = ctx.unlink(str(path)) - if ret: - return ret - else: - raise exception.SourceNotFound + ret = ctx.unlink(str(path)) + if ret: + return ret return ret except gfal2.GError as error: # pylint: disable=no-member if error.code == errno.ENOENT or 'No such file' in str(error):