---
title: objectWasDeleted
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phobjectchangedetails/objectwasdeleted
---

# objectWasDeleted

A Boolean value that indicates whether the object has been deleted from the Photos library.

## Declaration

```swift
var objectWasDeleted: Bool { get }
```

## Discussion

Discussion If this value is true, the asset or collection has been permanently deleted from the Photos library. To instead track the removal of assets from collections (or collections from collection lists), fetch the collection’s contents and use the changeDetails(for:) method to track changes to the fetch result.

## See Also

### Getting Change Information

- [assetContentChanged](photos/phobjectchangedetails/assetcontentchanged.md)
