implement tryDelete() method