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