Instance Method
delOnion(_:)
Convenience overload: delete an onion service by value.
func delOnion(_ service: OnionService) async throws
Parameters
-
service
-
The service to delete.
Mentioned In
Discussion
Thin wrapper around delOnion(_:) that reaches into serviceID for the ID. Prefer this overload when you still hold the OnionService handed back by addOnion(key:ports:detach:) — keeps the two sides of the lifecycle symmetric.
Throws
Same errors as delOnion(_:).