

# DeleteScheduleGroup
<a name="API_DeleteScheduleGroup"></a>

Deletes the specified schedule group. Deleting a schedule group results in EventBridge Scheduler deleting all schedules associated with the group. When you delete a group, it remains in a `DELETING` state until all of its associated schedules are deleted. Schedules associated with the group that are set to run while the schedule group is in the process of being deleted might continue to invoke their targets until the schedule group and its associated schedules are deleted.

**Note**  
 This operation is eventually consistent. 

## Request Syntax
<a name="API_DeleteScheduleGroup_RequestSyntax"></a>

```
DELETE /schedule-groups/Name?clientToken=ClientToken HTTP/1.1
```

## URI Request Parameters
<a name="API_DeleteScheduleGroup_RequestParameters"></a>

The request uses the following URI parameters.

 ** [ClientToken](#API_DeleteScheduleGroup_RequestSyntax) **   <a name="scheduler-DeleteScheduleGroup-request-uri-ClientToken"></a>
 Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency.   
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-zA-Z0-9-_]+` 

 ** [Name](#API_DeleteScheduleGroup_RequestSyntax) **   <a name="scheduler-DeleteScheduleGroup-request-uri-Name"></a>
The name of the schedule group to delete.  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[0-9a-zA-Z-_.]+`   
Required: Yes

## Request Body
<a name="API_DeleteScheduleGroup_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_DeleteScheduleGroup_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_DeleteScheduleGroup_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

## Errors
<a name="API_DeleteScheduleGroup_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** ConflictException **   
Updating or deleting the resource can cause an inconsistent state.  
HTTP Status Code: 409

 ** InternalServerException **   
Unexpected error encountered while processing the request.  
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The request references a resource which does not exist.  
HTTP Status Code: 404

 ** ThrottlingException **   
The request was denied due to request throttling.  
HTTP Status Code: 429

 ** ValidationException **   
The input fails to satisfy the constraints specified by an Amazon service.  
HTTP Status Code: 400

## See Also
<a name="API_DeleteScheduleGroup_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/scheduler-2021-06-30/DeleteScheduleGroup) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/scheduler-2021-06-30/DeleteScheduleGroup) 