There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DeleteFileSystem
with a CLI
The following code examples show how to use DeleteFileSystem
.
- CLI
-
- AWS CLI
-
To delete a file system
The following
delete-file-system
example deletes the specified file system.aws efs delete-file-system \ --file-system-id
fs-c7a0456e
This command produces no output.
For more information, see Deleting an Amazon EFS file system in the Amazon Elastic File System User Guide.
-
For API details, see DeleteFileSystem
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: Deletes the specified file system that is no longer in use (if the file system has mount targets they must be removed first). You are prompted for confirmation before the cmdlet proceeds - to suppress confirmation, use the
-Force
switch.Remove-EFSFileSystem -FileSystemId fs-1a2b3c4d
-
For API details, see DeleteFileSystem in AWS Tools for PowerShell Cmdlet Reference.
-