/** * Deletes an asset from the filesystem selected * * @param string $path The path to the asset * * @return boolean The success of the operation */ public function delete($path) { // workaround if object passed instead if (is_object($path)) { $path = $path->getPathname(); } return $this->adapter->delete($path); }
/** * Deletes existing rows. * * @param array|string $where SQL WHERE clause(s). * @return int The number of rows deleted. */ public static function delete($where) { $tableSpec = (static::$_schema ? static::$_schema . '.' : '') . static::$_name; return static::$_db->delete($tableSpec, $where); }
public function delete($key, array $options = []) : bool { $key = array_key_exists('noprefix', $options) ? $key : $this->prefix . $key; return $this->driver->delete($key, $options); }