@Axium Thanks for posting your questions.
Based on shared information I understand that you want to delete specific files under \site\wwwroot
on weekly basis.
You can leverage the triggered webjobs (runs based on schedule using CRON expression) in app service which are designed to run the background jobs.
Here is the CRON expression to run the job on every Sunday at 4AM 0 0 4 * * 0
If you are webapp is running on windows runtime you can use the below PowerShell script to delete the specific exported files.
cd C:\home\site\wwwroot
Remove-Item .\export* -recurse
If your webapp is running on Linux runtime then use the below script ion you web job.
cd /home/site/wwwroot
rm -rf ./export*
To know more information about web jobs you can refer to this documentation.
Also note that WebJobs for Windows container, Linux code, and Linux container is in preview. WebJobs for Windows code is generally available and not in preview.
Hope this help, let me know if you have any further questions on this.
Please accept as "Yes" if the answer is helpful so that it can help others in the community.