# Delete an artifact

From **GitHub v3 REST API**.

`DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`

Deletes an artifact for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

### `artifact_id`

- Location: path
- Required: true
- Type: `integer`

artifact_id parameter

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request DELETE \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/actions/artifacts/{artifact_id}
```
