---
title: disableSlicing()
framework: coretelephony
role: symbol
role_heading: Instance Method
path: coretelephony/ctslicingmanager/disableslicing()
---

# disableSlicing()

Disables network slicing for new connections.

## Declaration

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

## Discussion

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. 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)") } note: POSIXError.ENOTSUP if network slicing is not currently available. POSIXError.EINVAL if an invalid parameter or system error occurs.

## See Also

### Managing network slicing

- [activatePreferredSliceForCategory(_:)](coretelephony/ctslicingmanager/activatepreferredsliceforcategory(_:).md)
