Add delete confirmation as function to the api