As an alternative to dropping variables, it’s possible to choose which ones to keep in a dataset. You can use the Variables Manager in Stata, or preferably the command line interface and the keep varlist command. For instance, working with the nlsw88 dataset:
keep age race married collgrad south union wage ttl_exp
The above command keeps the listed variables in the dataset while the remainder is dropped. To undo, just reload the dataset in question.