You have two options that would probably work:
first when a new file is uploaded, just write it with the same name. That would just overwrite it.
or, you'd need to get the old file, call delete on it and then just do the do in the same way.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us