export type DeleteApiCrmObjects202609MeetingsMeetingIdArgs = {meetingId: string}; export type DeleteApiCrmObjects202609MeetingsMeetingIdOptions = {baseUrl?: string | undefined, oauth2?: string | undefined, fetch?: typeof fetch | undefined}; /** * Archive * * DELETE /crm/objects/2026-09/meetings/{meetingId} * * Also accepts auth: oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2 */ export const deleteApiCrmObjects202609MeetingsMeetingId = async (args: DeleteApiCrmObjects202609MeetingsMeetingIdArgs, options?: DeleteApiCrmObjects202609MeetingsMeetingIdOptions) => { const {baseUrl = "https://api.hubapi.com", fetch: fetchFn = fetch, oauth2} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (oauth2 !== undefined) headers.set('authorization', `Bearer ${oauth2}`) const url = `${baseUrl.replace(/\/+$/, '')}/crm/objects/2026-09/meetings/${encodeURIComponent(String(args.meetingId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };