def METHOD_NAME(driver, extension, path_rgb_byte_tif, tmpdir):
    """Delete a file with ``rasterio.shutil.delete()``.  Also specifies
    driver.
    """
    path = str(tmpdir.join('test_delete.{}'.format(extension)))
    rasterio.shutil.copy(path_rgb_byte_tif, path)
    assert os.path.exists(path)
    rasterio.shutil.delete(path, driver=driver)