Delete function in place