ZF\Apigility\Admin\Model\DbAdapterModel::remove PHP Method

remove() public method

Remove a named adapter
public remove ( string $name ) : true
$name string
return true
    public function remove($name)
    {
        $key = 'db.adapters.' . $name;
        $this->globalConfig->deleteKey($key);
        $this->localConfig->deleteKey($key);
        return true;
    }

Usage Example

 /**
  * @param $id
  * @return bool
  */
 public function delete($id)
 {
     $this->model->remove($id);
     return true;
 }