You need to make 2 steps of the decision.
The first step is to set the file_storage variable with parameters in the wizardโs file_storage to identify the wizardโs execution, to avoid errors in the previous steps that you said in the last comment.
And then in the done() function in the wizard, delete the entire contents of the folder (do not forget to use some unique scheme for each wizard when executing), so you can delete all the files in submit before you finish the wizard.
source share