Edit

Share via


GraphExtensions.DeleteItemAsync(GraphServiceClient, String, String) Method

Definition

Delete the file from the remote.

public static System.Threading.Tasks.Task DeleteItemAsync(this Microsoft.Graph.GraphServiceClient graph, string userId, string itemPath);
static member DeleteItemAsync : Microsoft.Graph.GraphServiceClient * string * string -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteItemAsync (graph As GraphServiceClient, userId As String, itemPath As String) As Task

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

userId
String

The id of the target Graph user.

itemPath
String

The path of the target item.

Returns

A Task representing the asynchronous operation.

Applies to