- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteDataSetCommand
This operation deletes a data set.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DataExchangeClient, DeleteDataSetCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
// const { DataExchangeClient, DeleteDataSetCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
const client = new DataExchangeClient(config);
const input = { // DeleteDataSetRequest
DataSetId: "STRING_VALUE", // required
};
const command = new DeleteDataSetCommand(input);
const response = await client.send(command);
// {};
DeleteDataSetCommand Input
See DeleteDataSetCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DataSetId Required | string | undefined | The unique identifier for a data set. |
DeleteDataSetCommand Output
See DeleteDataSetCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | Access to the resource is denied. |
ConflictException | client | The request couldn't be completed because it conflicted with the current state of the resource. |
InternalServerException | server | An exception occurred with the service. |
ResourceNotFoundException | client | The resource couldn't be found. |
ThrottlingException | client | The limit on the number of requests per second was exceeded. |
ValidationException | client | The request was invalid. |
DataExchangeServiceException | Base exception class for all service exceptions from DataExchange service. |