Make delete functional