* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Image\Deleter; /** * Interface ImageFileDeleterInterface describes an image file deleter. */ interface ImageFileDeleterInterface { /** * Recursively deletes all images in the given path and removes empty folders. * * @param string $path images directory * @param bool $recursively if true deletes images from subdirectories * @param bool $deleteSubdirectories if true deletes the subdirectories as well * @param string $format image format * * @return bool */ public function deleteFromPath($path, $recursively = false, $deleteSubdirectories = false, $format = 'jpg'); /** * Delete all images from given path. * * @param string $path * @param string $format */ public function deleteAllImages($path, $format = 'jpg'); }