def _remove_local_on_success(self, localpath):
        if self._deletesource:
            self.pd("Removing local path '{}' after successful upload.".format(localpath))
            result = cached.remove_path_and_cache(localpath)
            if result == const.ENoError: