DeleteLocationCommand

Deletes a transfer location resource from DataSync.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { DataSyncClient, DeleteLocationCommand } from "@aws-sdk/client-datasync"; // ES Modules import
// const { DataSyncClient, DeleteLocationCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
const client = new DataSyncClient(config);
const input = { // DeleteLocationRequest
  LocationArn: "STRING_VALUE", // required
};
const command = new DeleteLocationCommand(input);
const response = await client.send(command);
// {};

DeleteLocationCommand Input

See DeleteLocationCommandInput for more details

Parameter
Type
Description
LocationArn
Required
string | undefined

The Amazon Resource Name (ARN) of the location to delete.

DeleteLocationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
InternalException
server

This exception is thrown when an error occurs in the DataSync service.

InvalidRequestException
client

This exception is thrown when the client submits a malformed request.

DataSyncServiceException
Base exception class for all service exceptions from DataSync service.