Add functionality to remove variables and attributes
Created by: williamfgc