I attempted to delete all of a user’s messages by following the process below:
- Retrieve the list of all messages in a channel
- Filter by user ID to obtain a list of message IDs
- Repeatedly call the delete API
However, starting with step 1, it didn’t work properly. For example, suppose there are 400 messages. I tried to fetch 200 messages at a time using the next limit, but the pagination did not work.
Please provide a solution.