Revert "simplify the method delete"

This reverts commit 8f3d27cfd377ae45f47dce058fa56ade6b90c847.