I have added an S3 lambda trigger in my AWS Amplify project. However when I try to remove that lambda trigger using amplify remove function, it shows the following error.
Resource cannot be removed because it has a dependency on another resource
Dependency: S3 - s3xxxxxxxx
An error occurred when removing the resources from the local directory
AWS Amplify Documentation does not have a clear guide to remove lambda functions. So, how can I remove the function without removing the S3 resource?

