<!--
{
  "availability" : [
    "macOS: 10.13.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLDeviceNotificationName/wasRemoved",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@MTLDeviceWasRemovedNotification"
  },
  "title" : "wasRemoved"
}
-->

# wasRemoved

A notification that Metal sends to observers when the system removes a GPU device.

```
static let wasRemoved: MTLDeviceNotificationName
```

## Discussion

This notification tells your app that an [`MTLDevice`](/documentation/Metal/MTLDevice) instance and its methods are no longer valid to avoid runtime failures.

> Important:
> If a person removes a GPU without warning, this notification may be posted without a prior ``doc://com.apple.metal/documentation/Metal/MTLDeviceNotificationName/removalRequested`` notification.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)