During deployment of large documentation, with a lot of Documentation Parts, the upload fails because the previous cleanup didn't clean all existing documentation parts.
I would suggest to make a paginated request when fetching existing parts to ensure everything is properly cleaned.