DELETERECURSIVE does not delete S3 folder

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Using AWS S3 Asset storage, with the ASSETS__DELETERECURSIVE environment variable set to “true” and ASSETS__FOLDERPERAPP set to “true”, the action of deleting an App in Squidex does not delete the folder that is created in S3 for that app.

Expected behavior

My understanding is that DELETERECURSIVE should remove all of the assets for an app when that app is deleted.

Minimal reproduction of the problem

  1. Using AWS ECS, launch Squidex dev-6749 (or any earlier version)
  2. Create an App.
  3. Add assets to this app
  4. Take notice in AWS S3 that a new folder is created and the assets are created inside the folder.
  5. Delete the App in Squidex.
  6. Notice that the folder and all assets within remain in S3 and must be manually deleted.

Environment

App Name:

  • [ x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: dev-6749/6.5.0

Browser:

  • [x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

DELETERECURSIVE does not delete the asset files, only the assets. So if you delete a folder it also deletes the assets in the full graph, but not the asset files.