---
title: "removeAssets(_:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phassetcollectionchangerequest/removeassets(_:)"
---

# removeAssets(_:)

Removes the specified assets from the asset collection.

## Declaration

```swift
func removeAssets(_ assets: any NSFastEnumeration)
```

## Parameters

- `assets`: An array of doc://com.apple.photokit/documentation/Photos/PHAsset objects to be removed from the asset collection.

## Discussion

Discussion This method removes assets from the collection based on their identity (determined by the localIdentifier property of each asset). To remove objects at specified indexes, use the removeAssets(at:) method. note: Transient asset collections (such as those created with the transientAssetCollection(with:title:) method) do not support adding or removing content.

## See Also

### Modifying Asset Collections

- [init(for:)](photos/phassetcollectionchangerequest/init(for:).md)
- [init(for:assets:)](photos/phassetcollectionchangerequest/init(for:assets:).md)
- [title](photos/phassetcollectionchangerequest/title.md)
- [addAssets(_:)](photos/phassetcollectionchangerequest/addassets(_:).md)
- [insertAssets(_:at:)](photos/phassetcollectionchangerequest/insertassets(_:at:).md)
- [removeAssets(at:)](photos/phassetcollectionchangerequest/removeassets(at:).md)
- [replaceAssets(at:withAssets:)](photos/phassetcollectionchangerequest/replaceassets(at:withassets:).md)
- [moveAssets(at:to:)](photos/phassetcollectionchangerequest/moveassets(at:to:).md)
