src/Codeception/Module/WPFilesystem.php
public function deleteUploadedFile($file, $date = null)
    {
        $file = $this->getUploadsPath($file, $date);
        $this->deleteFile($file);
    }
public function deleteUploadedFile($file, $date = null)
    {
        $file = $this->getUploadsPath($file, $date);
        $this->deleteFile($file);
    }
public function deleteUploadedFile ( $ file , $ date = null ) { $ file = $ this -> getUploadsPath ( $ file , $ date ) ; $ this -> deleteFile ( $ file ) ; }
Deletes a file 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->deleteUploadedFile('some-file.txt');
$I->deleteUploadedFile('some-file.txt', 'today');
```

@param string $file The file path, relative to the uploads folder or the current folder.
@param string|int $date A string compatible with `strtotime` or a Unix timestamp.
Deletes a file in the uploads folder .