---
title: removalRequested
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtldevicenotificationname/removalrequested
---

# removalRequested

A notification that Metal sends to observers when a person requests to remove a GPU device from the system.

## Declaration

```swift
static let removalRequested: MTLDeviceNotificationName
```

## Mentioned in

Handling external GPU additions and removals

## Discussion

Discussion This notification tells your app to stop using an MTLDevice instance by releasing any objects and resources your app created with it. note: Metal removes the device instance from the array it returns with its methods — such as MTLCopyAllDevices() — before sending this notification.

## See Also

### Creating a notification name

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