Hi Zeeshan!
Your intentions or idea is not quite clear. From your statement what I understand is that you want when someone upload a file it directly went into a google drive and then get deleted after 30 days.
If this is so, you may need to master some coding skills first OR need a solution which is working alike i.e, IFTTT, Zapier, Microsoft Flow and Multcloud etc.
You may can also use google colab for this if looking for a free solution.
And furthermore you can use a WordPress plugin i.e, External Media which can provide the same functionality. But I think it may not have auto delete option.
Hope this helps.