Remove debug code from Delete and Copy