src/Codeception/Module/WPFilesystem.php
public function cleanUploadsDir($dir = null, $date = null)
    {
        $dir = null === $dir ? $this->config['uploads'] : $this->getUploadsPath(
            $dir,
            $date
        );
        $this->cleanDir($dir);
    }
public function cleanUploadsDir($dir = null, $date = null)
    {
        $dir = null === $dir ? $this->config['uploads'] : $this->getUploadsPath(
            $dir,
            $date
        );
        $this->cleanDir($dir);
    }
public function cleanUploadsDir ( $ dir = null , $ date = null ) { $ dir = null === $ dir ? $ this -> config [ 'uploads' ] : $ this -> getUploadsPath ( $ dir , $ date ) ; $ this -> cleanDir ( $ dir ) ; }
Clears a folder 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->cleanUploadsDir('some/folder');
$I->cleanUploadsDir('some/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`.
Clears a folder in the uploads folder .