const deleteMailTemplate = async (templateId, accessToken) => {
const response = await fetch(`https://api.weir.ai/mail/template/${templateId}`, {
method: 'DELETE',
headers: { 'Authorization': `Bearer ${accessToken}` }
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};