<!--
{
  "availability" : [
    "iOS: 26.3.0 -",
    "iPadOS: 26.3.0 -",
    "macCatalyst: 26.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreTelephony",
  "identifier" : "/documentation/CoreTelephony/CTSlicingManager/disableSlicing()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Telephony"
    ],
    "preciseIdentifier" : "s:13CoreTelephony16CTSlicingManagerC14disableSlicingyyYaKF"
  },
  "title" : "disableSlicing()"
}
-->

# disableSlicing()

Disables network slicing for new connections.

```
final func disableSlicing() async throws
```

## Discussion

Call this method to stop using network slicing for your app.
After calling this method, new network connections that your app establishes use the carrier’s default cellular internet without slice-specific routing.

> Important: This method only affects connections that the system creates after calling it.
> Existing active connections that already use a network slice continue to use that slice until the system closes them.

```swift
do {
    try await CTSlicingManager.shared.disableSlicing()
    // New connections use the default cellular internet.
    // Existing connections remain on their current slice.
} catch POSIXError.ENOTSUP {
    print("Network slicing operation isn't currently available.")
} catch {
    print("Failed to disable slicing: \(error)")
}
```

> Throws:
> 
> - `POSIXError.ENOTSUP` if network slicing is not currently available.
> - `POSIXError.EINVAL` if an invalid parameter or system error occurs.

---

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)