Skip to content

DeleteResourceTree

Source: src/AWS/Forecast/DeleteResourceTree.ts

Runtime binding for forecast:DeleteResourceTree — delete an entire tree of runtime-created Forecast resources (a predictor and its forecasts and exports, or a dataset’s import jobs) in a single call, the cost-hygiene counterpart to the Create* bindings.

The target ARNs are created at runtime, so the binding takes no arguments and grants forecast:DeleteResourceTree on *. Provide the implementation with Effect.provide(AWS.Forecast.DeleteResourceTreeHttp).

// init
const deleteResourceTree = yield* AWS.Forecast.DeleteResourceTree();
// runtime
yield* deleteResourceTree({ ResourceArn: predictorArn });