# Agent temporary files

#### Maintaining a clean agent cache ensures optimal performance and prevents job failures caused by corrupted temporary files, particularly after unexpected system shutdowns or hardware failures.

***

## Overview

The agent stores temporary operational data in a specific directory named `device_app_2eab590a`. The location of this folder depends entirely on the execution context of the agent — whether it is running as a **standalone executable**, or under the **Local System Account**.

Identifying and clearing this directory is a primary troubleshooting step for unexplained backup failures or service startup issues.

***

## Windows

#### Identifying the path via logs

When the agent is **initialized successfully**, the exact temporary files folder path is recorded in the **agent logs**.

Look for the **entry labeled** `TEMPORARY_DATA_DIRECTORY`. The agent’s temporary files are stored within this location.

#### Default temporary file locations

Depending on how the agent is configured, temporary files can be found in one of the below directories:

1. If running as an `.exe` or a service under a specific user account:
   * `C:\Users[USER]\AppData\Local\Temp`\
     Where `[USER]` should be replaced with specific profile name.
2. If running as a system service with **Local System Account**:
   * `C:\Windows\SystemTemp`
   * `C:\Windows\System32\config\systemprofile\AppData\Local\Temp`
   * `C:\Windows\Temp`

***

## Linux

#### Default temporary file locations

Temporary files folder (`device_app_2eab590a`) can be found in one of the below directories:

* `/tmp/`
* `/var/tmp/`
* path returned by running a console command: `echo $TMPDIR`

***

## MacOs

#### Default temporary file locations

Temporary files folder (`device_app_2eab590a`) can be found in one of the below directories:

* `/private/var/tmp` or `/var/tmp`
* `/private/tmp` or `/tmp`
* path returned by running a console command: `echo $TMPDIR`

***

## Useful links and items

{% content-ref url="/pages/i9isP2XwUN51bHsDFtWl" %}
[Agent logs location](/xopero-one-en/management/log-files/agent-logs-location.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpcenter.xopero.com/xopero-one-en/management/agent-temporary-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
