If you use the unset command in the following way with wildcards at the beginning and end:

unset % [ $+ [ $+(*,NAME,*) ] ]

It messes up the variables in general. I don't know what exactly happens.

If it is a Wildcard only at the end like below:
unset % [ $+ [ $+(NAME,*) ] ]

It works normally, but with Joker at the beginning the variables get strange and messy.

I tried to make an alias by passing a standard name like $1 and what was reported above happened. The idea was to delete everything with the suggested name.