An Azure NoSQL database service for app development.
It seems that you are encountering an issue with dropping databases that have corrupted names due to a trailing newline character in Azure Cosmos DB for MongoDB. Unfortunately, the current capabilities of Azure Cosmos DB for MongoDB do not provide a direct way to drop databases with such corrupted names through the usual methods (mongosh, Node.js driver, Azure Portal, or Azure CLI).
Since these databases are not accessible through standard commands and Azure Portal does not display them, the best course of action would be to reach out to Azure support for assistance. They may have the necessary tools and permissions to handle such cases on the server-side and help you remove these corrupted databases.
Make sure to provide them with all relevant details, including the resource ID and the exact names of the databases you wish to drop. This will help them assist you more effectively.
References:
- Supported features and syntax in Azure Cosmos DB for MongoDB 7.0 server version
- Supported features and syntax in Azure Cosmos DB for MongoDB 6.0 server version
- Supported features and syntax in Azure Cosmos DB for MongoDB 5.0 server version
- Supported features and syntax in Azure Cosmos DB for MongoDB 4.0 server version
- Supported features and syntax in Azure Cosmos DB for MongoDB 3.2 server version