Services Plugins FAQs

Delete Folder or Files "AWS" File uploader - Any size

Hi This is Ertan. I already bought this plugin and it working fine but i have diffuculties to delete anything from my S3 bucket.

I need to delete folder (i know s3 is not working as folder structure those are paths and keys). My customers can create a box (folder) and they can put videos and photos inside that box. So if user wants to delete his box (folder) or files(photo video), i tried with delete file , delete files but it never deletes anything.

actually i can only see the box name from my database and use current user->box’s label to find box but files has different names which user gives or already has different combinations.

please help me to delete my folders and files from my bucket

Hello, @eertan.gurses
Thanks for reaching out.

Unfortunately, there is no possibility to delete the entire folder, using our plugin.
You can only delete one or a few files by creating a required workflow, but you need to know that folder will be deleted automatically in case you will delete all the files from this folder.

In case the action of deleting any files is not working on your side, it means that:

  • You haven’t configured the “Delete” method on your bucket and it is not possible;
  • Your setup is incorrect.

Also, please note that all the files should be deleted only from your AWS Bucket, but not from your Bubble DataBase.
Thus, please provide me screenshots of your current settings for Delete files and of an error from the browser console.

Looking to hearing from you soon.
Best regards,

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "PUT",
            "DELETE",
            "POST"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": [
            "ETag"
        ],
        "MaxAgeSeconds": 30000
    }
]
  • You haven’t configured the “Delete” method on your bucket and it is not possible;

This is how we give access to our buckets for delete right ? if yes it is setup already under bucket → permissions → CORS

  • Your setup is incorrect.

Coud you please give me an axample of correct setup or workflow becouse i used your documentation and follow all steps 1 by 1.

Also, please note that all the files should be deleted only from your AWS Bucket, but not from your Bubble DataBase.

I already create workflow and with this flow i can delete from bubble but it stays on my bucket.

Could you please tell me what i will choose for [folder]/[filename] becouse i use folder as my box name like current page box label but i dont know that the filenames of users put inside that folder. so it makes me stuck on delete.

Please help me

Hello, @eertan.gurses
Thanks for these details.

As an example of the Delete files workflow, you can use our Demo Page:

Here you can use any required type:

Folder structure doesn’t affect removing files from your Bucket. It is just used for naming your folder and file after uploading.

Can you please share with me the screenshot of your current settings for the Delete workflow? Also, it would be really helpful if you will send me the screenshot of the error from your browser console.

I’m looking to hearing from you soon.
Best regards,