--
:api: delete-component-template
:request: DeleteComponentTemplateRequest
:response: AcknowledgedResponse
--

[id="{upid}-{api}"]
=== Delete Component Template API

[id="{upid}-{api}-request"]
==== Request

The Delete Component Template API allows you to delete a component template.

["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
--------------------------------------------------
<1> The name of the component template to delete.

=== Optional arguments
The following arguments can optionally be provided:

["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request-masterTimeout]
--------------------------------------------------
<1> Timeout to connect to the master node as a `TimeValue`

[id="{upid}-{api}-response"]
==== Response

The returned +{response}+ indicates if the delete component template request was received.

["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------
<1> Whether or not the delete component template request was acknowledged.

include::../execution.asciidoc[]
