# deleteChatroom

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/mutations/delete-chatroom


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
deleteChatroom(
  eventId: String
  communityId: String
  chatroomId: Chat_UUID
  chatroomIds: [Chat_UUID!]
): Chat_Channel!
```

### Arguments

#### [<code style={{ fontWeight: 'normal' }}>deleteChatroom.<b>eventId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>deleteChatroom.<b>communityId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Mandatory - will be required in the future
> 

#### [<code style={{ fontWeight: 'normal' }}>deleteChatroom.<b>chatroomId</b></code>](#)<Bullet />[`Chat_UUID`](/organizer/content-api/graphql-event-api-schema/scalars/chat-uuid) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>deleteChatroom.<b>chatroomIds</b></code>](#)<Bullet />[`[Chat_UUID!]`](/organizer/content-api/graphql-event-api-schema/scalars/chat-uuid) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

### Type

#### [`Chat_Channel`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel) <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
>
