---
title: "NSUnregisterServicesProvider(_:)"
framework: appkit
role: symbol
role_heading: Function
path: "appkit/nsunregisterservicesprovider(_:)"
---

# NSUnregisterServicesProvider(_:)

Unregisters a service provider.

## Declaration

```swift
func NSUnregisterServicesProvider(_ name: NSServiceProviderName)
```

## Parameters

- `name`: The name of the service you want to unregister.

## Discussion

Discussion Use this function to unregister custom services not directly related to your application. You should not use this function to unregister the services provided by your application. For your application’s services, you should use the servicesProvider method of NSApplication, passing a nil argument.

## See Also

### Registering Services

- [NSRegisterServicesProvider(_:_:)](appkit/nsregisterservicesprovider(_:_:).md)
- [NSUpdateDynamicServices()](appkit/nsupdatedynamicservices().md)
- [NSServiceProviderName](appkit/nsserviceprovidername.md)
