Revert "add a function to remove a specific shortcut by pattern"

This reverts commit 1f563ab8f4bcc50227499c25d1b65d6c6d3c47d6.