Cannot Delete Meeting after called End Meeting

Using this template helps us debug your issues more effectively :slight_smile:

Description
We want to automatically end and delete the meeting through our server when our client sends an event that the discussion between our participants has been finished. So that we can free up the license to create a new meeting for the next discussion. This error happened when we have 2 participants, one left the meeting, one stay in the meeting when the trigger was fired. Here is our approach:
Step 1: Call End Meeting (Always success) >>> the meeting will end, all participants will be kicked out of the zoom
Step 2: Call Delete Meeting >>> fail with error code below

Error
3002 - “Sorry, you cannot delete this meeting since it’s in progress.”

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. PUT /meetings/{meetingId}/status { “action”: “end” }
  2. DELETE /meetings/{meetingId}

Screenshots (If applicable)
N/A

Additional context
Please let us know if you need meeting IDs to debug, this issue is not stable. Currently, we cannot reproduce it.

Hi @hungtr,

Can you try spacing these requests out a little bit? (e.g., perhaps waiting a minute or so before making the delete requets)

I suspect that you’re calling the DELETE API to soon after the meeting was ended—it can take some time for this to be logged.

Let me know if this helps—thanks!
Will