ClearHistory10_20

Delete folders named in format [PDFs-2020-12-05] in certain folder along with their content.
Providing number of days to keep and number of days to delete.

Example: to keep folders of last 22 days and delete 40 days before that use
Call ClearHistory10_20("/OrdersPDFs/", 22, 40)

CodeFunctionName What is this?

Public

Tested

Original Work

Access is limited.

Login here using your Linkedin account. to see or download code.

No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydev.net

Linkedin Login

ParentFolder, Days_GoBack, Days_2Delete

Go back 15 days and clear 60 days before that
Call ClearHistory10_20("/OrdersPDFs/", 15, 60)

Go back 7 days and clear 20 days before that
Call ClearHistory10_20("/OrdersPDFs/", 7, 20)

Views 724

Downloads 316

CodeID
DB ID