Table of Contents

Struct DeleteUserRequest

Namespace
Vonage.Users.DeleteUser
Assembly
Vonage.dll

Represents a request to delete an existing user from the Vonage platform.

public readonly struct DeleteUserRequest : IVonageRequest
Implements
Inherited Members

Properties

UserId

The unique identifier of the user to delete (e.g., "USR-12345678-1234-1234-1234-123456789012").

public string UserId { get; }

Property Value

string

Methods

BuildRequestMessage()

Converts the request to a HttpRequest.

public HttpRequestMessage BuildRequestMessage()

Returns

HttpRequestMessage

The Http request.

Parse(string)

Creates a DeleteUserRequest from the specified user ID.

public static Result<DeleteUserRequest> Parse(string userId)

Parameters

userId string

The unique identifier of the user to delete. Must not be empty.

Returns

Result<DeleteUserRequest>

A result containing the DeleteUserRequest on success, or validation error details if the user ID is empty.