introduced scheduler parameter to DeleteDirectory