<!--
{
  "availability" : [
    "iOS: 3.0.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.6.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "ServiceManagement",
  "identifier" : "/documentation/ServiceManagement/SMJobRemove(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Service Management"
    ],
    "preciseIdentifier" : "c:@F@SMJobRemove"
  },
  "title" : "SMJobRemove(_:_:_:_:_:)"
}
-->

# SMJobRemove(_:_:_:_:_:)

Removes the job with the specified label from the specified domain.

```
func SMJobRemove(_ domain: CFString!, _ jobLabel: CFString, _ auth: AuthorizationRef!, _ wait: Bool, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
```

## Parameters

`domain`

The job’s domain (for example, [`kSMDomainSystemLaunchd`](/documentation/ServiceManagement/kSMDomainSystemLaunchd)).

`jobLabel`

The label identifier of the job to remove.

`auth`

An `AuthorizationRef` containing the [`kSMRightModifySystemDaemons`](/documentation/ServiceManagement/kSMRightModifySystemDaemons) right if the specified domain is [`kSMDomainSystemLaunchd`](/documentation/ServiceManagement/kSMDomainSystemLaunchd).

`wait`

Pass `true` to block until the process for the specified job has exited.

`outError`

An output reference to a `CFErrorRef` describing the specific error when removing the job, or `NULL` if no error occurred. It’s the responsibility of the app to release the error reference. This argument can be `NULL`.

## Return Value

Returns `true` if the system successfully removes the job, otherwise `false`.

## Discussion

If the job is currently running, it conditionally blocks until the running process has exited.

---

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)