Removes all published services from the local GATT database.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
Use this when you want to remove all services you’ve previously published, for example, if your app has a toggle button to expose GATT services.
Because apps on the local peripheral device share the GATT database, this method removes only the services that you added using the
add(_:) method. This call doesn’t remove any services published by other apps on the local peripheral device.