Storage/StorageBase.php
public function delete($key) {
    $directory = $this->environment->getHooksDirectory();
    $data_file = "$directory/{$key}_processed.php";

    if (file_exists($data_file)) {
      unlink($data_file);
    }
  }
public function delete($key) {
    $directory = $this->environment->getHooksDirectory();
    $data_file = "$directory/{$key}_processed.php";

    if (file_exists($data_file)) {
      unlink($data_file);
    }
  }
public function delete ( $ key ) { $ directory = $ this -> environment -> getHooksDirectory ( ) ; $ data_file = "$directory/{$key}_processed.php" ; if ( file_exists ( $ data_file ) ) { unlink ( $ data_file ) ; } }
Deletes a data file, if it exists.

Does not give any indication if the deletion failed.

@param string $key
The indentifier for the data, e.g. 'hooks'.
Deletes a data file if it exists .