Recommended way to delete user-defined variables

how to use the regex option?