# Temporary storage (/start/temp-storage)



In many cases, it is useful to use variables only during a certain period of the narrative. Using normal storage, you would need to manually remove these variables when they are no longer needed, to keep saves light and efficient.

To solve this problem, Pixi’VN has a temporary storage system. Temporary variables initialized in a `label` will be deleted when the `label` is closed. If another `label` is called from it, the temporary variable will still be accessible from the child `label`. However, if another `label` is called with `jump` (so the current `label` will be closed and the new one started), the temporary variable will no longer be accessible.

## Set [#set]

To set a temporary variable, use [`storage.temp.set`](/jsdoc/pixi-vn/index/interfaces/StorageTempInterface#set).

```ts
import { storage } from "@drincs/pixi-vn";

storage.temp.set("myTempVariable", 42);
```

## Get [#get]

To get a temporary variable, use the normal [`storage.get`](/jsdoc/pixi-vn/index/interfaces/StorageManagerInterface#get) function.

## Remove [#remove]

To remove a temporary variable, use [`storage.temp.remove`](/jsdoc/pixi-vn/index/interfaces/StorageTempInterface#remove).

```ts
import { storage } from "@drincs/pixi-vn";

storage.temp.remove("myTempVariable");
```
