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.
Remove-FSXFileSystem-FileSystemId <String>-ClientRequestToken <String>-LustreConfiguration_FinalBackupTag <Tag[]>-OpenZFSConfiguration_FinalBackupTag <Tag[]>-WindowsConfiguration_FinalBackupTag <Tag[]>-OpenZFSConfiguration_Option <String[]>-LustreConfiguration_SkipFinalBackup <Boolean>-OpenZFSConfiguration_SkipFinalBackup <Boolean>-WindowsConfiguration_SkipFinalBackup <Boolean>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>-ClientConfig <AmazonFSxConfig>
FileSystemId
value to the DeleFileSystem
operation.
By default, when you delete an Amazon FSx for Windows File Server file system, a final backup is created upon deletion. This final backup isn't subject to the file system's retention policy, and must be manually deleted.
The DeleteFileSystem
operation returns while the file system has the DELETING
status. You can check the file system deletion status by calling the DescribeFileSystems operation, which returns a list of file systems in your account. If you pass the file system ID for a deleted file system, the DescribeFileSystems
operation returns a FileSystemNotFound
error.
If a data repository task is in a PENDING
or EXECUTING
state, deleting an Amazon FSx for Lustre file system will fail with an HTTP status code 400 (Bad Request). Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
SkipFinalBackup
is set to false
, and you want to apply an array of tags to the final backup. If you have set the file system property CopyTagsToBackups
to true, and you specify one or more FinalBackupTags
when deleting a file system, Amazon FSx will not copy any existing file system tags to the backup. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | LustreConfiguration_FinalBackupTags |
SkipFinalBackup
to false if you want to take a final backup of the file system you are deleting. By default, Amazon FSx will not take a final backup on your behalf when the DeleteFileSystem
operation is invoked. (Default = true)The fsx:CreateBackup
permission is required if you set SkipFinalBackup
to false
in order to delete the file system and take a final backup. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | OpenZFSConfiguration_FinalBackupTags |
DELETE_CHILD_VOLUMES_AND_SNAPSHOTS
. If your file system has child volumes and you don't use this option, the delete request will fail. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | OpenZFSConfiguration_Options |
DeleteFileSystem
operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final backup. If you want to skip taking a final backup, set this value to true
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | WindowsConfiguration_FinalBackupTags |
DeleteFileSystem
operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final backup. If you want to skip this backup, use this flag to do so. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
Remove-FSXFileSystem -FileSystemId fs-012ff34e567890120
Confirm
Are you sure you want to perform this action?
Performing the operation "Remove-FSXFileSystem (DeleteFileSystem)" on target "fs-012ff34e567890120".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
FileSystemId Lifecycle WindowsResponse
------------ --------- ---------------
fs-012ff34e567890120 DELETING Amazon.FSx.Model.DeleteFileSystemWindowsResponseThis example removes the given FSX file system ID.
AWS Tools for PowerShell: 2.x.y.z