update for deleteAPI