# File store AT commands

Source: [https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html)

Table : File store AT commands

| Command | Description |
| --- | --- |
| [AT+WRITEFILE](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html#at_writefile) | Write a file to the device flash storage using a two-step hex-encoded protocol |
| [AT+READFILE](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html#at_writefile) | Read a file from the device flash storage and output its contents |
| [AT+DELFILE](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html#at_writefile) | Delete a file from the device flash storage |

## AT+WRITEFILE

Source: [https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html)

This command writes a file to the device flash storage using a two-step hex-encoded protocol:
1. Create or truncate the file with the C (create) command.
2. Append data in hex-encoded chunks using the A (append) command.

The file closes automatically when the total number of bytes received reaches the value specified in `<size>`.

### Operation type

Set/Execution

### Syntax

| Command | Response |
| --- | --- |
| AT+WRITEFILE | AT+WRITEFILE=&lt;path&gt;,C,&lt;size&gt; or AT+WRITEFILE=&lt;path&gt;,A,&lt;hex&gt;<br><br><br>                                <br>OK |
| AT+WRITEFILE=&lt;path&gt;,C,&lt;size&gt; | OK |
| AT+WRITEFILE=&lt;path&gt;,A,&lt;size&gt; | OK (intermediate chunk) or<br><br><br>                                <br>+WRITEFILE: &lt;n&gt; bytes written<br><br><br>                                <br>OK (final chunk, file closed) |

### Defined values

- `<path>`: File path. Automatically prefixed with `/lfs` if not provided. Maximum 127 characters.
- `<mode>`: Transfer mode.
    - `C`: Create (or truncate) the file and prepare to receive data.
    - `A`: Append a hex-encoded data chunk to the open file.
- `<size>`: Total expected file size in bytes. When the cumulative bytes written reaches this value, the file is closed automatically and `+WRITEFILE: <n> bytes written` is returned.
- `<hex>`: Hex-encoded data to append. Each byte is two hex characters (for example, byte `0xFF` &gt; `FF`). Maximum 256 hex characters (128 bytes) per chunk. Both uppercase and lowercase hex digits are accepted.

## AT+READFILE

Source: [https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html)

This command reads a file from the device flash storage and outputs its contents.

### Operation type

Set/Execution

### Syntax

| Command | Response |
| --- | --- |
| AT+READFILE | AT+READFILE=&lt;path&gt;<br><br><br>                                <br>OK |
| AT+READFILE=&lt;path&gt; | +READFILE: &lt;path&gt;, &lt;size&gt; bytes<br><br><br>                                <br>&lt;file contents&gt;<br><br><br>                                <br>OK |

### Defined values

- `<path>`: File path. Automatically prefixed with `/lfs` if not provided. Maximum 127 characters.

## AT+DELFILE

Source: [https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-10/topic/file_store_at_commands.html)

This command deletes a file from the device flash storage.

### Operation type

Set/Execution

### Syntax

| Command | Response |
| --- | --- |
| AT+DELFILE | AT+DELFILE=&lt;path&gt;<br><br><br>                                <br>OK |
| AT+DELFILE=&lt;path&gt; | OK |

### Defined values

- `<path>`: File path. Automatically prefixed with `/lfs` if not provided. Maximum 127 characters.

Last Published: Jun 03, 2026

[Previous Topic
OTA AT commands](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-10/topics/ota_at_commands.md) [Next Topic
Power save AT commands](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-10/topics/power_save_at_commands.md)