Deletes a stored script or search template. ##Required authorization
- Cluster privileges:
manage
Query parameters
-
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
-1to indicate that the request should never timeout.Values are
-1or0. -
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
-1to indicate that the request should never timeout.Values are
-1or0.
DELETE
/_scripts/{id}
Console
DELETE _scripts/my-search-template
curl \
--request DELETE 'http://api.example.com/_scripts/{id}'