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

# PFDataDeleteFilesRequest

> PFDataDeleteFilesRequest data model. Deletes the requested files from the entity's profile.

PFDataDeleteFilesRequest data model. Deletes the requested files from the entity's profile.

## Syntax

```cpp theme={null}
typedef struct PFDataDeleteFilesRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    const char* const* fileNames;  
    uint32_t fileNamesCount;  
    int32_t const* profileVersion;  
} PFDataDeleteFilesRequest;  
```

### Members

**`customTags`**   [PFStringDictionaryEntry](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry.md) const\*\
*may be nullptr*

(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

**`customTagsCount`**   uint32\_t

Count of customTags

**`entity`**   [PFEntityKey](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*

The entity to perform this action on.

**`fileNames`**   const char\* const\*

Names of the files to be deleted.

**`fileNamesCount`**   uint32\_t

Count of fileNames

**`profileVersion`**   int32\_t const\*\
*may be nullptr*

(Optional) Optional field used for concurrency control. By specifying the previously returned ProfileVersion value from the GetFiles API or other APIs, you can ensure that the file deletion is performed only if the profile has not been updated since you last loaded that version. If the profile for the same entity has been updated, the operation will fail with an EntityProfileVersionMismatch error. The conflicting update can be caused by any operation that modifies the entity profile, including SetObjects, FinalizeFileUploads, and UpdateStatistics.

## Requirements

**Header:** PFDataTypes.h

## See also

[PFDataTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfdatatypes/pfdatatypes_members.md)


## Related topics

- [PFDataDeleteFilesAsync](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatadeletefilesasync.md)
- [Services C API overview - PFDataTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfdatatypes/pfdatatypes_members.md)
- [DELETE (/sessions/{sessionId}/scids/{scid}/data/{pathAndFileName},{type})](https://docs.xbox.com/reference/live/rest/uri/storage/uri-sessionssessionidscidssciddatapathandfilenametype-delete.md)
- [DELETE (/trustedplatform/users/xuid({xuid})/scids/{scid}/data/{pathAndFileName},{type})](https://docs.xbox.com/reference/live/rest/uri/storage/uri-trustedplatformusersxuidscidssciddatapathandfilenametype-delete.md)
- [DELETE (/untrustedplatform/users/xuid({xuid})/scids/{scid}/data/{pathAndFileName},{type})](https://docs.xbox.com/reference/live/rest/uri/storage/uri-untrustedplatformusersxuidscidssciddatapathandfilenametype-delete.md)
