function Zip::remove

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip::remove()
  2. 8.9.x core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip::remove()
  3. 10 core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip::remove()

Overrides ArchiverInterface::remove

File

core/lib/Drupal/Core/Archiver/Zip.php, line 51

Class

Zip
Defines an archiver implementation for .zip files.

Namespace

Drupal\Core\Archiver

Code

public function remove($file_path) {
    $this->zip
        ->deleteName($file_path);
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.