id) !== true) { throw new RuntimeException( 'id is required for delete' ); } $id = $this->id; if (isset($this->index) !== true) { throw new RuntimeException( 'index is required for delete' ); } $index = $this->index; return "/$index/_doc/$id"; } public function getParamWhitelist(): array { return [ 'wait_for_active_shards', 'refresh', 'routing', 'timeout', 'if_seq_no', 'if_primary_term', 'version', 'version_type' ]; } public function getMethod(): string { return 'DELETE'; } }