src/Codeception/Module/WPFilesystem.php
public function deleteUploadedDir($dir, $date = null)
    {
        $dir = $this->getUploadsPath($dir, $date);
        $this->debug('Deleting folder ' . $dir);
        $this->deleteDir($dir);
    }
public function deleteUploadedDir($dir, $date = null)
    {
        $dir = $this->getUploadsPath($dir, $date);
        $this->debug('Deleting folder ' . $dir);
        $this->deleteDir($dir);
    }
public function deleteUploadedDir ( $ dir , $ date = null ) { $ dir = $ this -> getUploadsPath ( $ dir , $ date ) ; $ this -> debug ( 'Deleting folder ' . $ dir ) ; $ this -> deleteDir ( $ dir ) ; }
Deletes a dir in the uploads folder.

The date argument can be a string compatible with `strtotime` or a Unix
timestamp that will be used to build the `Y/m` uploads subfolder path.

@example
``` php
$I->deleteUploadedDir('folder');
$I->deleteUploadedDir('folder', 'today');
```

@param  string               $dir  The path to the directory to delete, relative to the uploads folder.
@param  string|int|\DateTime $date The date of the uploads to delete, will default to `now`.
Deletes a dir in the uploads folder .