mirror of
https://github.com/balzack/databag.git
synced 2025-02-16 05:29:15 +00:00
9 lines
291 B
JavaScript
9 lines
291 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function removeChannel(server, token, channelId) {
|
|
|
|
let channel = await fetchWithTimeout(`https://${server}/content/channels/${channelId}?agent=${token}`,
|
|
{ method: 'DELETE' });
|
|
checkResponse(channel);
|
|
}
|