Delete function.