# IRemovalAware interface

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public interface IRemovalAware
```

Implements this interface in your [IDocumentObject](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.idocumentobject.md) to be notified when your object is about to be deleted by the user.

**Derived types:** [Pin<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.pin-1.md), [Relay](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.relay.md)

## Methods

- [PrepareForRemoval](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.iremovalaware/prepareforremoval.md): This method will be called prior to the removal of this object.
