Delete a scheduled action for Application Auto Scaling using the Amazon CLI
When you are finished with a scheduled action, you can delete it.
To delete your scheduled action
Use the delete-scheduled-action
Linux, macOS, or Unix
aws application-autoscaling delete-scheduled-action \ --service-namespace
ec2
\ --scalable-dimensionec2:spot-fleet-request:TargetCapacity
\ --resource-idspot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE
\ --scheduled-action-namemy-recurring-action
Windows
aws application-autoscaling delete-scheduled-action ^ --service-namespace
ec2
^ --scalable-dimensionec2:spot-fleet-request:TargetCapacity
^ --resource-idspot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE
^ --scheduled-action-namemy-recurring-action
To deregister the scalable target
If you are also finished with the scalable target, you can deregister it. Use the
following deregister-scalable-target
Linux, macOS, or Unix
aws application-autoscaling deregister-scalable-target \ --service-namespace
ec2
\ --scalable-dimensionec2:spot-fleet-request:TargetCapacity
\ --resource-idspot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE
Windows
aws application-autoscaling deregister-scalable-target ^ --service-namespace
ec2
^ --scalable-dimensionec2:spot-fleet-request:TargetCapacity
^ --resource-idspot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE