Delete function implemented.