AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DeleteBackup operation. Deletes an Amazon FSx backup. After deletion, the backup no longer exists, and its data is gone.

The DeleteBackup call returns instantly. The backup won't show up in later DescribeBackups calls.

The data in a deleted backup is also deleted and can't be recovered by any means.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.FSx.AmazonFSxRequest
      Amazon.FSx.Model.DeleteBackupRequest

Namespace: Amazon.FSx.Model
Assembly: AWSSDK.FSx.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteBackupRequest : AmazonFSxRequest
         IAmazonWebServiceRequest

The DeleteBackupRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteBackupRequest()

Properties

NameTypeDescription
Public Property BackupId System.String

Gets and sets the property BackupId.

The ID of the backup that you want to delete.

Public Property ClientRequestToken System.String

Gets and sets the property ClientRequestToken.

A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This parameter is automatically filled on your behalf when using the CLI or SDK.

Examples

This operation deletes an Amazon FSx file system backup.

To delete a backup


var client = new AmazonFSxClient();
var response = client.DeleteBackup(new DeleteBackupRequest 
{
    BackupId = "backup-03e3c82e0183b7b6b"
});

string backupId = response.BackupId;
string lifecycle = response.Lifecycle;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5