After delete image object, file remains in Azure Blob container

1
We have set up Microsoft Azure Blobs as filestorage. This works great. After selecting and uploading, the image is placed in the set Blob container. But when deleting an image object (Generalization of Image => FileDocument) this object is deleted from the database, but remains in the Azure Blob container. How can this also be removed so that no images remain in the Blob containers and this no longer has a record in the FileDocuments?
asked
3 answers
0

- Default behaviour is the Runtime will delete the object from Blob storage when the FileDocument is deleted.

- When Runtime Setting com.mendix.storage.PerformDeleteFromStorage is set to false, it will NOT delete the object from Azure and it will stay there indefinitely (see: https://docs.mendix.com/refguide/custom-settings#2-general-settings)

- Setting com.mendix.storage.PerformDeleteFromStorage=false is the recommended setting and the default in all templates I publish (e.g. https://github.com/MXClyde/mendix-kubernetes-azure/blob/cbe6bf735d819fa1fa636a634b12f62a5331bfe9/manifests/kubernetes/kubernetes.yaml#L84). Reason being that it enables you to restore an old database backup and still have all the files available.

answered
0

I assume you have configured Azure Blob Storage in Mendix, and you have not made a custom integration. Although I have no experience with this setup, I suggest the following actions:

  • Ensure the configured account is authorized to delete files,
  • Check the log file for errors and warnings concerning the deletion of files,
  • Submit an incident at https://support.mendix.com : the database and file storage being consistent is something the platform needs to take care of, if it doesn’t, I would consider this a bug.
answered
0

Hi,

I would like to know the process and steps for Blob storage integration within Mendix app.

Could you share please your feedback ?

 

Thanks

answered