# DeleteObjectAction class

Namespace: [Grasshopper2.Undo.Actions](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.undo.actions.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-3473-4c8e-b442-a5cab8c0d1df")]
[UiName("Delete Object")]
public sealed class DeleteObjectAction : Action
```

An undo action for removing an object.

## Constructors

- [DeleteObjectAction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.deleteobjectaction/ctor.md): (2 overloads)

## Properties

- [InstanceId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.deleteobjectaction/instanceid.md)
- [ObjectId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.deleteobjectaction/objectid.md)

## Methods

- [PerformRedoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.deleteobjectaction/performredointernal.md)
- [PerformUndoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.deleteobjectaction/performundointernal.md)
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.actions.deleteobjectaction/store.md)

## Inherited Members

- From [Action](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action.md): [Response](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/response.md), [State](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/state.md), [Extends](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/extends.md), [PerformRedo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/performredo.md), [PerformUndo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/performundo.md), [PrepareRedo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareredo.md), [PrepareRedoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareredointernal.md), [PrepareUndo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareundo.md), [PrepareUndoInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.undo.action/prepareundointernal.md)
