complete delete method

make delete method completely