Hi
"But I would like all emails in which the respective attachment starts with the same name (but they all differ in name because of the date but at the beginning is always the same) to replace the previous ones in OneDrive. "
Can you give an example of the name structure?
My suggestion is to use an expression to extract the pattern from the file name, then search for files in the same folder (since they are stored also in the same target folder as the one you stored, right?) matching that pattern, and delete all of them
Hope this helps