# remove_tunnel
The EvoShield remove_tunnel POST endpoint removes the specified tunnel
Parameters
account
: The account key - which can be found in the Settings area of the Evolution Host client area: https://evolution-host.com/controlPanelservice_key
: The unique key for the particular Evolution Host service being used in this API call - Can be found by using the /list_services API endpointtunnel_id
: The unique ID for the tunnel you wish to remove - Can be found using the /list_tunnels API endpoint$url = "https://evolution-host.com/api.php";
$postData = http_build_query([
'account' => 'YOUR_ACCOUNT_KEY',
'service_key' => 'YOUR_SERVICE_KEY',
'action' => 'remove_tunnel',
'tunnel_id' => '160136462',
]);
$headers = array(
'http' => array
(
'method' => "POST",
'ignore_errors' => true,
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $postData,
),
);
$api_context = stream_context_create($headers);
$result = file_get_contents($url, false, $api_context);
$non_decoded_result = $result;
$result = json_decode($result);
if($result !== NULL)
{
if($result->description != '')
{
echo '<pre>' . json_encode($result->description, JSON_PRETTY_PRINT) . '</pre>';
}
else
{
echo "The tunnel has been removed!";
}
}
else
{
if($non_decoded_result != 'ok')
{
echo "Error removing tunnel: $non_decoded_result";
}
else
{
echo "The tunnel has been removed!";
}
}