// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.communication.generated;

/** Samples for SenderUsernames Delete. */
public final class SenderUsernamesDeleteSamples {
    /*
     * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/stable/2023-03-31/examples/senderUsernames/delete.json
     */
    /**
     * Sample code: Delete SenderUsernames resource.
     *
     * @param manager Entry point to CommunicationManager.
     */
    public static void deleteSenderUsernamesResource(
        com.azure.resourcemanager.communication.CommunicationManager manager) {
        manager
            .senderUsernames()
            .deleteWithResponse(
                "MyResourceGroup",
                "MyEmailServiceResource",
                "mydomain.com",
                "contosoNewsAlerts",
                com.azure.core.util.Context.NONE);
    }
}
