Page updated Nov 12, 2023

Remove files

Amplify Android v1 is now in Maintenance Mode until May 31st, 2024. This means that we will continue to include updates to ensure compatibility with backend services and security. No new features will be introduced in v1.

Please use the latest version (v2) of Amplify Library for Android to get started.

If you are currently using v1, follow these instructions to upgrade to v2.

To delete an object uploaded to S3, use Amplify.Storage.remove and specify the key:

Amplify.Storage.remove( "myUploadedFileName.txt", result -> Log.i("MyAmplifyApp", "Successfully removed: " + result.getKey()), error -> Log.e("MyAmplifyApp", "Remove failure", error) );
2 "myUploadedFileName.txt",
3 result -> Log.i("MyAmplifyApp", "Successfully removed: " + result.getKey()),
4 error -> Log.e("MyAmplifyApp", "Remove failure", error)