<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/RunLoop/cancelPerformSelectors(withTarget:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRunLoop(im)cancelPerformSelectorsWithTarget:"
  },
  "title" : "cancelPerformSelectors(withTarget:)"
}
-->

# cancelPerformSelectors(withTarget:)

Cancels all outstanding ordered performs scheduled with a given target.

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

## Parameters

`target`

The previously-specified target.

## 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:)`](/documentation/Foundation/RunLoop/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)