<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Cinematic",
  "identifier" : "/documentation/Cinematic/CNScript-1ispe/removeDetectionTrack(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Cinematic"
    ],
    "preciseIdentifier" : "s:9Cinematic8CNScriptC20removeDetectionTrackySbAA011CNDetectionE0CF"
  },
  "title" : "removeDetectionTrack(_:)"
}
-->

# removeDetectionTrack(_:)

Removes the user-created detection track.

```
final func removeDetectionTrack(_ detectionTrack: CNDetectionTrack) -> Bool
```

## Parameters

`detectionTrack`

The detection track to remove.

## Return Value

A flag indicating whether removal of the user-created detection track was successful.

## Discussion

It’s not possible to remove tracks created at recording time.

---

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)