> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFDataDeleteFilesAsync

> Delete files on an entity's profile.

Delete files on an entity's profile.

## Syntax

```cpp theme={null}
HRESULT PFDataDeleteFilesAsync(  
    PFEntityHandle entityHandle,  
    const PFDataDeleteFilesRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFDataDeleteFilesRequest\*](/services/playfab/api-references/c/pfdatatypes/structs/pfdatadeletefilesrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Deletes the requested files from the entity's profile. See also FileAbortFileUploadsAsync, FileFinalizeFileUploadsAsync, FileGetFilesAsync, FileInitiateFileUploadsAsync. When the asynchronous task is complete, call [PFDataDeleteFilesGetResultSize](/services/playfab/api-references/c/pfdata/functions/pfdatadeletefilesgetresultsize) and [PFDataDeleteFilesGetResult](/services/playfab/api-references/c/pfdata/functions/pfdatadeletefilesgetresult) to get the result.

## Requirements

**Header:** PFData.h

## See also

[PFData members](/services/playfab/api-references/c/pfdata/pfdata_members)


## Related topics

- [PFDataDeleteFilesGetResult](/services/playfab/api-references/c/pfdata/functions/pfdatadeletefilesgetresult.md)
- [Services C API overview - PFData.h](/services/playfab/api-references/c/pfdata/pfdata_members.md)
- [PFDataDeleteFilesGetResultSize](/services/playfab/api-references/c/pfdata/functions/pfdatadeletefilesgetresultsize.md)
- [PFDataGetFilesAsync](/services/playfab/api-references/c/pfdata/functions/pfdatagetfilesasync.md)
- [PFDataAbortFileUploadsAsync](/services/playfab/api-references/c/pfdata/functions/pfdataabortfileuploadsasync.md)
