fix auth issue while deleting with rest