---
title: "cancelPerformSelectors(withTarget:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/runloop/cancelperformselectors(withtarget:)"
---

# cancelPerformSelectors(withTarget:)

Cancels all outstanding ordered performs scheduled with a given target.

## Declaration

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

## Parameters

- `target`: The previously-specified target.

## Discussion

Discussion This method cancels the previously scheduled messages associated with the target, ignoring the selector and argument of the scheduled operation. This is in contrast to cancelPerform(_:target:argument:), which requires you to match the selector and argument as well as the target. This method removes the perform requests for the object from all modes of the run loop.

## See Also

### Scheduling and Canceling Tasks

- [perform(_:)](foundation/runloop/perform(_:).md)
- [perform(inModes:block:)](foundation/runloop/perform(inmodes:block:).md)
- [perform(_:target:argument:order:modes:)](foundation/runloop/perform(_:target:argument:order:modes:).md)
- [cancelPerform(_:target:argument:)](foundation/runloop/cancelperform(_:target:argument:).md)
