---
title: "removeAllActions(withTarget:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/undomanager/removeallactions(withtarget:)"
---

# removeAllActions(withTarget:)

Clears the undo and redo stacks of all operations involving the specified target as the recipient of the undo message.

## Declaration

```swift
func removeAllActions(withTarget target: Any)
```

## Parameters

- `target`: The recipient of the undo messages to be removed.

## Discussion

Discussion Doesn’t re-enable the manager if it’s disabled.

## See Also

### Related Documentation

- [enableUndoRegistration()](foundation/undomanager/enableundoregistration().md)

### Clearing undo operations

- [removeAllActions()](foundation/undomanager/removeallactions().md)
