Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
removeImageFromS3 = async (key) => {
await Storage.remove(key)
.then(result => console.log('Picture deleted', result))
.catch(err => console.log(err))
}