Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

DeleteBucket

Delete AWS S3 Bucket.

Task version: 2.2.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

BucketName : String

AWS S3 bucket's name to be deleted.

Must follow AWS S3 bucket naming requirements.

See https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

Default: - Example: my-example-bucket

Name
Description

🗝AwsAccessKeyId : String

AWS Access Key ID for authentication.

This is the public part of your AWS credentials.

Default: - Example: AKIAQWERTY7NJ5Q7NZ6Q

🗝AwsSecretAccessKey : String

AWS Secret Access Key for authentication.

This is the private part of your AWS credentials and should be kept secure.

Default: - Example: TVh5hgd3uGY/2CqH+Kkrrg3dadbXLsYe0jC3h+WD

Region : Region

AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

Possible values:

  • AfSouth1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApEast1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApNortheast1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApNortheast2: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApNortheast3: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApSouth1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApSoutheast1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • ApSoutheast2: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • CaCentral1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • CnNorth1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • CnNorthWest1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • EuCentral1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • EuNorth1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • EuSouth1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • EuWest1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • EuWest2: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • EuWest3: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • MeSouth1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • SaEast1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • UsEast1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • UsEast2: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • UsWest1: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

  • UsWest2: AWS region where the S3 bucket is located.

Must match the region where the bucket was created.

Default: - Example: EuCentral1

Name
Description

ThrowErrorOnFailure : Boolean

Determines whether to throw an exception when the operation fails.

If false, errors will be returned in the Result object instead of throwing exceptions.

Default: True Example: false

ErrorMessageOnFailure : String

Custom error message to use when an error occurs.

If empty, a default error message will be used.

This message will be included in both thrown exceptions and Error objects.

Default: - Example: Failed to delete the specified S3 bucket

Task Result

Name
Description

Success : Boolean

Indicates whether the delete bucket operation completed successfully. Returns true if the bucket was deleted or if the bucket did not exist. Returns false only when an error occurred and ThrowErrorOnFailure is false. Example: true

Error : Error

Contains error information when the operation fails. This property is null when Success is true. Only populated when ThrowErrorOnFailure is false and an error occurs. Example: null

Error.Message : String

Error message describing what went wrong. Example: Failed to delete the bucket.

Error.AdditionalInfo : Object

Additional information about the error, can contain any type of data. Example: Additional error details

Task Changelog

Changelog for Task Frends.AmazonS3.DeleteBucket.

[2.2.0] - 2026-07-16

Changed

  • Made the task class static to comply with Frends task analyzer requirements (FT0004).

[2.1.0] - 2025-12-29

Changed

  • Updated AWS SDK version.

[2.0.0] - 2025-07-16

  • [Breaking] Moved Connection.BucketName to Input.BucketName - update your processes to use the Input tab for bucket name configuration

  • [Breaking] Added new Options parameter class with error handling configuration

  • [Breaking] Updated Result class structure - removed Data property and added Error property for consistent error reporting

  • Added ThrowErrorOnFailure option (default: false) to control exception throwing behavior

  • Added ErrorMessageOnFailure option for custom error messages

  • Updated project to target .NET 8.0 for improved performance and compatibility

  • Enhanced XML documentation with better examples and descriptions

[1.0.0] - 2023-07-31

Added

  • Initial implementation

Last updated

Was this helpful?