delete() public method

Performs DELETE HTTP request
public delete ( string | array $url, array $options = [], string $body = null, boolean $raw = false ) : mixed
$url string | array URL
$options array URL options
$body string request body
$raw boolean if response body contains JSON and should be decoded
return mixed response
コード例 #1
0
ファイル: Command.php プロジェクト: nbsp/yii2-elasticsearch
 /**
  * @param $name
  * @return mixed
  * @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
  */
 public function deleteTemplate($name)
 {
     return $this->db->delete(['_template', $name]);
 }