started deleteItem function.