Snippet overwrite media files?


I’m looking for a snippet that will overwrite media files. Example: There a audio file called Dogpark.mp3 uploaded to wordpress. The next week I have a few file called Dogpark.mp3 which I want to upload and replace last weeks file. Is there a snippet library I can find snippet that does that? The client doesn’t want to use media replacement plugin. Thank you for your time.