Well... I think I managed it...
I simply applied a delete file behaviour and chose as file to be deleted the one I previously set up as default file in the upload file behaviour. I don't know if this is the right way to do but it seems to work the way I needed.