- 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.
DeleteExportCommand
Removes a previous export and the associated files stored in an S3 bucket.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { LexModelsV2Client, DeleteExportCommand } from "@aws-sdk/client-lex-models-v2"; // ES Modules import
// const { LexModelsV2Client, DeleteExportCommand } = require("@aws-sdk/client-lex-models-v2"); // CommonJS import
const client = new LexModelsV2Client(config);
const input = { // DeleteExportRequest
exportId: "STRING_VALUE", // required
};
const command = new DeleteExportCommand(input);
const response = await client.send(command);
// { // DeleteExportResponse
// exportId: "STRING_VALUE",
// exportStatus: "InProgress" || "Completed" || "Failed" || "Deleting",
// };
DeleteExportCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
exportId Required | string | undefined | The unique identifier of the export to delete. |
DeleteExportCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
exportId | string | undefined | The unique identifier of the deleted export. |
exportStatus | ExportStatus | undefined | The current status of the deletion. When the deletion is complete, the export will no longer be returned by the ListExports operation and calls to the DescribeExport operation with the export identifier will fail. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InternalServerException | server | The service encountered an unexpected condition. Try your request again. |
PreconditionFailedException | client | Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again. |
ServiceQuotaExceededException | client | You have reached a quota for your bot. |
ThrottlingException | client | Your request rate is too high. Reduce the frequency of requests. |
ValidationException | client | One of the input parameters in your request isn't valid. Check the parameters and try your request again. |
LexModelsV2ServiceException | Base exception class for all service exceptions from LexModelsV2 service. |