delete_emr_application
Permanently delete an EMR Serverless application. Works on STOPPED or CREATED applications; can optionally force-stop running applications first. Specify environment to ensure proper execution.
Instructions
Delete an EMR Serverless application permanently.
The application must be in STOPPED or CREATED state to be deleted. If the application is still running:
With force=False: returns an error asking you to stop it first.
With force=True: automatically stops the app (cancelling any running jobs), waits for it to reach STOPPED state, then deletes it.
Args: application_id: The EMR Serverless application ID. force: If True, stop the app first (cancelling jobs) then delete. If False, only delete if already stopped. env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.
Returns a step-by-step report of what was done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| application_id | Yes | ||
| force | No | ||
| env | No |