> For the complete documentation index, see [llms.txt](https://tariksavas.gitbook.io/tarsave/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tariksavas.gitbook.io/tarsave/docs/how-to-use/datapersistenceservice/deleteall.md).

# DeleteAll

```csharp
bool DeleteAll()
```

**Purpose:** Deletes all files in the configured save directory.&#x20;

**Parameters:** None.&#x20;

**Return Value:** Returns true if the deletion of the directory was successful, false otherwise.

```csharp
public void DeleteAll()
{
    bool result = _dataPersistenceService.DeleteAll();
}
```
