@Override
	public boolean delete() {
		lock.acquire();
		try {
			if (checkIsValid()) {
				FunctionDB fun = getFunction();
				if (fun != null) {
					fun.doDeleteVariable(this);
				}
				super.delete();
				return true;
			}
			return false;
		}
		finally {
			lock.release();
		}
	}
Constructs a new VariableSymbol
@param symbolMgr the symbol manager
@param cache symbol object cache
@param type the symbol type.
@param variableMgr variable storage manager
@param address the address of the symbol (stack address)
@param record the record for the symbol
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/VariableSymbolDB.java