Added assert statement to check if deletion happened