---
title: wasRemoved
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtldevicenotificationname/wasremoved
---

# wasRemoved

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

## Declaration

```swift
static let wasRemoved: MTLDeviceNotificationName
```

## Mentioned in

Handling external GPU additions and removals

## Discussion

Discussion This notification tells your app that an 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 removalRequested notification.

## See Also

### Creating a notification name

- [wasAdded](metal/mtldevicenotificationname/wasadded.md)
- [removalRequested](metal/mtldevicenotificationname/removalrequested.md)
- [init(rawValue:)](metal/mtldevicenotificationname/init(rawvalue:).md)
