const deleteClient = async (clientId, accessToken) => {
const response = await fetch(`https://api.weir.ai/org/client/${clientId}`, {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${accessToken}`,
'x-source': 'console'
}
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};