> ## Documentation Index
> Fetch the complete documentation index at: https://trigger-features-scheduled-tasks.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DynamicSchedule: unregister() instance method

> Use this method to unregister a schedule from a DynamicSchedule.

## Parameters

<ResponseField name="id" type="string" required>
  The id of the schedule to unregister. This is what you used when you
  registered it.
</ResponseField>

## Returns

A Promise that resolves to:

<ResponseField name="ok" type="boolean">
  OK is true if the schedule was unregistered successfully.
</ResponseField>

<RequestExample>
  ```typescript unregister
  const unregistered = await dynamicSchedule.unregister(userId);
  ```
</RequestExample>
