I was using the delete API call to remove a folder that contained more than 10k files when I saw the too_many_files error. I switched over to the delete_batch API call in order to bypass this error, but received the same error at 10,001 files. I decided to send smaller chunks, but when trying to use delete_batch with more than 3425 files, I consistently get an internal error reported. When I reduced the number of files to be sent to the delete_batch API call to 3422, I was successful in deleting 3422 files the first go around, then received the internal error for any subsequent calls to delete_batch. I'm having a hard time writing reliable code to this endpoint without fully understanding it's limits and don't want to resort to deleting files one at a time since this will take much longer. This code was being used for performance testing and the issue first documented when deleting a folder with 100k files.