Untitled
unknown
plain_text
a year ago
495 B
3
Indexable
Never
const { SQSClient, PurgeQueueCommand } = require("@aws-sdk/client-sqs"); const sqsClient = new SQSClient({ region: "us-east-1" }); const purgeQueueParams = { QueueUrl: "https://sqs.us-west-2.amazonaws.com/995319131876/test", }; const purgeQueueCommand = new PurgeQueueCommand(purgeQueueParams); sqsClient.send(purgeQueueCommand) .then((data) => console.log(data)) .catch((error) => console.log("Error", error)) .finally(() => console.log("Endpoint:", sqsClient.config.endpointUrl));