2.3 Delete power station
<p><strong>A brief description:</strong> </p>
<ul>
<li>Delete the interface of the power station</li>
</ul>
<p><strong>Request URL: </strong></p>
<ul>
<li><code>http(s)://test.growatt.com/v1/plant/delete</code>
<strong>Call example</strong></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Is it required</th>
<th style="text-align: left;">Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">plant_id</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">77</td>
<td>Plant ID</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;plant_id&quot;: &quot;77&quot;,
}</code></pre>
<p><strong>Return to Example</strong></p>
<pre><code>{
&quot;data&quot;: &quot;&quot;,
&quot;error_code&quot;: 0,
&quot;error_msg&quot;: &quot;&quot;
}</code></pre>
<p><strong>Return parameter description</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">int</td>
<td>error code</td>
</tr>
<tr>
<td style="text-align: left;">error_msg</td>
<td style="text-align: left;">string</td>
<td>Error message prompt</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align: left;">error_code</th>
<th style="text-align: left;">error_msg</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">0</td>
<td style="text-align: left;">Return normally</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;data&quot;: &quot;&quot;,
&quot;error_code&quot;: 0,
&quot;error_msg&quot;: &quot;&quot;
}</code></pre>
<table>
<thead>
<tr>
<th style="text-align: left;">error_code</th>
<th style="text-align: left;">error_msg</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">10001</td>
<td style="text-align: left;">System error</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;error_msg&quot;: &quot;error_system error&quot;,
&quot;data&quot;: &quot;&quot;,
&quot;error_code&quot;: 10001
}</code></pre>
<table>
<thead>
<tr>
<th style="text-align: left;">error_code</th>
<th style="text-align: left;">error_msg</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">10002</td>
<td style="text-align: left;">The power plant ID is empty</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;error_msg&quot;: &quot;error_plant ID is empty&quot;,
&quot;data&quot;: &quot;&quot;,
&quot;error_code&quot;: 10002
}</code></pre>
<table>
<thead>
<tr>
<th style="text-align: left;">error_code</th>
<th>error_msg</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">10004</td>
<td>The power station does not exist</td>
</tr>
</tbody>
</table>
<pre><code>{
&quot;error_msg&quot;: &quot;error_plant does not exist&quot;,
&quot;data&quot;: &quot;&quot;,
&quot;error_code&quot;: 10004
}</code></pre>
<p><strong>Remark</strong></p>