Added in delete functionality for global variables