ds_delete_object() complete,refactoring