getInfo($item_id); if(!$item_info['file_url']) { return true; } $file_name = $item_info['file_url']; foreach (static::$resized_sizes as $size => $value) { $file_local_path = PUBLIC_DIR . "/". static::$image_folder . "/". $size. IMAGE_FILE_SEPARATOR . $file_name; @unlink($file_local_path); } // remove original file $file_local_path = PUBLIC_DIR . "/". static::$image_folder . "/". $file_name; @unlink($file_local_path); return true; } }