delete($input['shop_domain']); echo $result; } else { echo 'Error deleting shop: No shop domain found in input'; } } catch(\Exception $e) { echo $e->getMessage(); }