---
title: "deselectAssets(withIdentifiers:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phpickerviewcontroller/deselectassets(withidentifiers:)"
---

# deselectAssets(withIdentifiers:)

Deselects assets that are in a selected state.

## Declaration

```swift
func deselectAssets(withIdentifiers identifiers: [String])
```

## Parameters

- `identifiers`: The list of identifiers to deselect.

## Discussion

Discussion This method ignores assets that are invalid or aren’t in a selected state, and if you don’t specify a library when calling init(photoLibrary:).
