test delete code