It looks like in your list you are repeating directly over the results from the API. In this scenario, you need to refetch the list after the delete. So call the get data API again. Otherwise you delete it in the backend but you won't see the change in the frontend. I'm guessing that after the check you fetch the data again?