---
title: "deleteCollectionLists(_:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phcollectionlistchangerequest/deletecollectionlists(_:)"
---

# deleteCollectionLists(_:)

Requests to delete the specified asset collections.

## Declaration

```swift
class func deleteCollectionLists(_ collectionLists: any NSFastEnumeration)
```

## Parameters

- `collectionLists`: An array of doc://com.apple.photokit/documentation/Photos/PHCollectionList objects to be deleted.

## Mentioned in

Requesting Changes to the Photo Library

## Discussion

Discussion Call this method within a photo library change block to delete collection lists. For details on change blocks, see PHPhotoLibrary. important: Deleting a collection list also deletes any child collections it contains. To preserve those collections, remove them from the collection list (with the removeChildCollections(_:) or removeChildCollections(at:) method) before deleting it. Deleting a collection list does not delete assets contained in its child collections.

## See Also

### Managing Collection Lists

- [creationRequestForCollectionList(withTitle:)](photos/phcollectionlistchangerequest/creationrequestforcollectionlist(withtitle:).md)
- [placeholderForCreatedCollectionList](photos/phcollectionlistchangerequest/placeholderforcreatedcollectionlist.md)
