> For the complete documentation index, see [llms.txt](https://jetbot.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jetbot.gitbook.io/api/javascript/vnutrennie-funkcii-js/deleteglobalvariable.md).

# deleteGlobalVariable()

Функция deleteGlobalVariable() удаляет глобальную переменную.

## Синтаксис

```javascript
deleteGlobalVariable(name)
```

* `name` (строка, string) - имя глобальной переменной

## Возвращаемые значения

Эта функция ничего не возвращает.

## Пример

В этом примере происходит удаление глобальной переменной, если она существует.

```javascript
deleteGlobalVariable("Город");
```
