Skip to content

Deletes a dataset version or an entire dataset asynchronously

Description

Deletes a dataset version or an entire dataset asynchronously. If datasetVersion is absent, deletes all versions and the dataset record itself. If provided, deletes only that specific version.

Usage

bedrockagentcorecontrol_delete_dataset(datasetId, datasetVersion)

Arguments

  • datasetId

    [required] The unique identifier of the dataset to delete.

  • datasetVersion

    Optional version to delete. If absent, deletes the entire dataset. If provided, deletes only that specific version.

Value

A list with the following syntax:

list(
  datasetArn = "string",
  datasetId = "string",
  status = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|"CREATE_FAILED"|"UPDATE_FAILED"|"DELETE_FAILED",
  datasetVersion = "string",
  updatedAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$delete_dataset(
  datasetId = "string",
  datasetVersion = "string"
)