i'm try this code but not working
$domain = "sub.example.com";
$data = array("key" => "OOFju3Zb9s",'action' => 'delete','user' => 'amjed','type' => 'subdomain','name' => $domain,'path' => '/'.$domain);
$url = "
https://000.000.00.000:2304/v1/admindomains";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);