Remove files
These docs cover Amplify Gen 1. For new web apps, we recommend the latest AWS Amplify, with a simplified CLI and native integrations for databases, storage, and AI models. Get started with the latest AWS Amplify.
Delete stored data from the storage bucket.
Public level remove
await Storage.remove('test.txt');Protected level remove
await Storage.remove('test.txt', { level: 'protected' });Private level remove
await Storage.remove('test.txt', { level: 'private' });