Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Deleting a schedule group in EventBridge Scheduler
In the following, you can learn how to delete a schedule group using the Amazon Web Services Management Console and
the Amazon Command Line Interface. When you delete a group, it is in the DELETING
state until
EventBridge Scheduler deletes all schedules in the group. After EventBridge Scheduler deletes the schedules in the
group, the group is no longer available in your account.
Once you create a group, you can't remove a schedule from that group, or associate the schedule with a different group.
You can only associate a schedule with a group when you first create the schedule.
- Amazon Web Services Management Console
-
To delete a group using the Amazon Web Services Management Console
-
Sign in to the Amazon Web Services Management Console and open the Amazon EventBridge console at https://console.amazonaws.cn/events/.
-
In the left navigation pane, choose Schedule
groups in the left navigation pane.
-
On the Schedule groups page, from the list of
existing groups in the current Amazon Web Services Region, locate the group you
want to delete. If you don't see the group you're looking for,
choose another Amazon Web Services Region.
You can't delete, or edit, the default
group.
-
Select the check box for the group that you want to delete.
-
Choose Delete.
-
In the Delete schedule group dialog box,
enter the name of the group to confirm your choice, then choose
Delete.
-
In the Schedule groups list, the
Status column changes to indicate that your
group is now Deleting. The group remains in
this state until EventBridge Scheduler deletes all of the schedules associated with
the group.
-
To refresh the list and confirm that the group was deleted, choose
the Refresh icon.
- Amazon CLI
-
To delete a group using the Amazon CLI
-
Open a new command prompt window.
-
From the Amazon Command Line Interface (Amazon CLI), enter the followingdelete-schedule-group
command to
delete the schedule group. Replace the value for --name
with your information.
$
aws scheduler delete-schedule-group --name
TestGroup
If successful, this Amazon CLI operation doesn't return a response.
-
To verify that the group is in the DELETING
state,
run the following get-schedule-group
command.
$
aws scheduler get-schedule-group --name
TestGroup
If successful, you receive output similar to the following:
{
"Arn": "arn:aws-cn::scheduler:us-west-2:123456789012:schedule-group/TestGroup",
"CreationDate": "2023-01-01T09:00:00.000000-07:00",
"LastModificationDate": "2023-01-01T09:00:00.000000-07:00",
"Name": "TestGroup",
"State": "DELETING"
}
EventBridge Scheduler deletes the group after it deletes the schedules associated
with the group. If you run get-schedule-group
again,
you receive following ResourceNotFoundException
response:
An error occurred (ResourceNotFoundException) when calling the GetScheduleGroup operation: Schedule group TestGroup does not exist.