

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# を使用して Application Auto Scaling のスケジュールされたアクションを削除する AWS CLI
<a name="delete-scheduled-action"></a>

スケジュールされたアクションを使い終わったら削除することができます。

**スケジュールされたアクションを削除する**  
[delete-scheduled-action](https://docs.aws.amazon.com/cli/latest/reference/application-autoscaling/put-scheduled-action.html) コマンドを使用します。このコマンドが正常に完了した場合は、出力が返されません。

**Linux、macOS、または Unix**

```
aws application-autoscaling delete-scheduled-action \
  --service-namespace {{ec2}} \
  --scalable-dimension {{ec2:spot-fleet-request:TargetCapacity}} \
  --resource-id {{spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE}} \
  --scheduled-action-name {{my-recurring-action}}
```

**Windows**

```
aws application-autoscaling delete-scheduled-action ^
  --service-namespace {{ec2}} ^
  --scalable-dimension {{ec2:spot-fleet-request:TargetCapacity}} ^
  --resource-id {{spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE}} ^
  --scheduled-action-name {{my-recurring-action}}
```

**スケーラブルなターゲットを登録解除する**  
スケーラブルターゲットも完了した場合は、登録解除できます。次の [deregister-scalable-target](https://docs.aws.amazon.com/cli/latest/reference/application-autoscaling/deregister-scalable-target.html) コマンドを使用します。まだ削除されていないスケジュールされたアクションやスケーリングポリシーがある場合は、このコマンドによって削除されます。このコマンドが正常に完了した場合は、出力が返されません。

**Linux、macOS、または Unix**

```
aws application-autoscaling deregister-scalable-target \
  --service-namespace {{ec2}} \
  --scalable-dimension {{ec2:spot-fleet-request:TargetCapacity}} \
  --resource-id {{spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE}}
```

**Windows**

```
aws application-autoscaling deregister-scalable-target ^
  --service-namespace {{ec2}} ^
  --scalable-dimension {{ec2:spot-fleet-request:TargetCapacity}} ^
  --resource-id {{spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-37294EXAMPLE}}
```