Make onDownload overwrite files

I set up onDownload to rename a file before executing the download (Chrome), however, if there is file with the same name in the destination folder, it appends the suffix (1), (2),… What I’d like to do is instead of appending the suffix (1), (2),…the file is overwritten. Does anyone have an idea?

My onDownload syntax looks like this, doesn’t seem to be able to specify overwrite:

{
“Command”: “onDownload”,
“Target”: “mydata.csv”,
“Value”: “”,
“Description”: “”
},

For reference if anyone encounter the same issue: I was able to workaround this using Xtype. Basically you turn on “ask where to save file before downloading” then do an overwrite in manner similar to as you do it manually

{
“Command”: “XType”,
“Target”: “D:\myfolder\mydata.csv”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”,
“Description”: “”
},