Add delete check to API