update script of deleting records via remote api