Delete a script or search template
Deletes a stored script or search template.
Path parameters
-
The identifier for the stored script or search template.
Query parameters
-
master_timeout string
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to
-1
to indicate that the request should never timeout. -
timeout string
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. It can also be set to
-1
to indicate that the request should never timeout.
DELETE
/_scripts/{id}
curl \
--request DELETE http://api.example.com/_scripts/{id}
Response examples (200)
{
"acknowledged": true
}