Dela via


ESim.DeleteProfileAsync(String) Method

Definition

Asynchronously deletes the specified eSIM profile.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Microsoft Store, then you'll need to request special approval to use the custom capability Microsoft.eSIMManagement_8wekyb3d8bbwe. For more info, see Custom capabilities.

public:
 virtual IAsyncOperation<ESimOperationResult ^> ^ DeleteProfileAsync(Platform::String ^ profileId) = DeleteProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ESimOperationResult> DeleteProfileAsync(winrt::hstring const& profileId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ESimOperationResult> DeleteProfileAsync(string profileId);
function deleteProfileAsync(profileId)
Public Function DeleteProfileAsync (profileId As String) As IAsyncOperation(Of ESimOperationResult)

Parameters

profileId
String

Platform::String

winrt::hstring

The identification number (an ICCID) of the eSIM profile to delete.

Returns

An asynchronous delete operation. On successful completion, contains an ESimOperationResult object representing the result of the delete operation.

Attributes

Windows requirements

App capabilities
Microsoft.eSIMManagement_8wekyb3d8bbwe

Applies to