Admin API Bad Request - Documentation Down

I am trying to create a simple editor tool to delete UGC content by its ID using the Admin API. I was informed that this is the “best” approach since the online dashboard currently lacks this feature. Authentication seems to work correctly as far as I can tell, but I keep receiving a “Bad Request” response.

Here is the error message I’m getting:

Error: BadRequest - Bad Request - Details: {"Title":"Content Not Found","Detail":"Cannot delete missing content.","Details":null,"Status":22009,"status":400}
UnityEngine.Debug:LogError (object)
Shared.Editor.UgcEditor/<DeleteContentAsync>d__8:MoveNext () (at Assets/Shared/Editor/UGCEditor.cs:74)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

It appears the error indicates that the content cannot be deleted because it’s not found. However, I am certain the content ID is correct.

Here is the code I am using:

private async Task DeleteContentAsync(string contentId)
{
    using var client = new HttpClient();
    var credentials = $"{APIKey}:{APISecret}";
    var encodedCredentials = Convert.ToBase64String(Encoding.UTF8.GetBytes(credentials));
    client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", encodedCredentials);
    var requestUri = $"https://services.api.unity.com/ugc/v1/projects/{ProjectId}/environments/{EnvironmentId}/content/{contentId}";

    try
    {
        var response = await client.DeleteAsync(requestUri);
        if (response.IsSuccessStatusCode)
        {
            _responseMessage = $"Successfully deleted content with ID: {contentId}";
        }
        else
        {
            var errorDetails = await response.Content.ReadAsStringAsync();
            _responseMessage = $"Error: {response.StatusCode} - {response.ReasonPhrase} - Details: {errorDetails}";
            Debug.LogError(_responseMessage);
        }
    }
    catch (Exception exception)
    {
        _responseMessage = $"Exception: {exception.Message}";
    }
}

Unfortunately, the documentation at Unity Services Docs seems to be down, and judging by other posts here, it looks like this has been an ongoing issue for the past few days.

Questions:

  1. Is the endpoint https://services.api.unity.com/ugc/v1/projects/{ProjectId}/environments/{EnvironmentId}/content/{contentId} correct for deleting content?
  2. Are there any specific headers or additional steps required for deletion requests in this API that I might be missing?
  3. Is my approach even correct?

I appreciate any insights or suggestions for resolving this. Thank you!