# Delete

> Creates a UnityWebRequest configured for HTTP DELETE.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.6/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

## Delete(string)

Creates a UnityWebRequest configured for HTTP `DELETE`.

```csharp
public static UnityWebRequest Delete(string uri)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The URI to which a `DELETE` request should be sent.

### Returns

| Type                                                                                         | Description                                                    |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [UnityWebRequest](/engine/6000.6/script-reference/unityengine/networking/unitywebrequest.md) | A UnityWebRequest configured to send an HTTP `DELETE` request. |

### Remarks

This method creates a UnityWebRequest, sets the verb to `DELETE` and sets the target URL to the string argument `uri`. It sets no custom flags or headers.

This method attaches no [DownloadHandler](/engine/6000.6/script-reference/unityengine/networking/downloadhandler.md) or [UploadHandler](/engine/6000.6/script-reference/unityengine/networking/uploadhandler.md) to the [UnityWebRequest](/engine/6000.6/script-reference/unityengine/networking/unitywebrequest.md).

## Delete(Uri)

Creates a UnityWebRequest configured for HTTP `DELETE`.

```csharp
public static UnityWebRequest Delete(Uri uri)
```

### Parameters

**** (\[Uri]\(https\://learn.microsoft.com/dotnet/api/system.uri)): The URI to which a `DELETE` request should be sent.

### Returns

| Type                                                                                         | Description                                                    |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [UnityWebRequest](/engine/6000.6/script-reference/unityengine/networking/unitywebrequest.md) | A UnityWebRequest configured to send an HTTP `DELETE` request. |

### Remarks

This method creates a UnityWebRequest, sets the verb to `DELETE` and sets the target URL to the string argument `uri`. It sets no custom flags or headers.

This method attaches no [DownloadHandler](/engine/6000.6/script-reference/unityengine/networking/downloadhandler.md) or [UploadHandler](/engine/6000.6/script-reference/unityengine/networking/uploadhandler.md) to the [UnityWebRequest](/engine/6000.6/script-reference/unityengine/networking/unitywebrequest.md).
