Deletes a specific artifact for a workflow run
DELETE
/repos/{owner}/{repo}/actions/artifacts/{artifact_id}
const url = 'https://gitea.com/api/v1/repos/example/example/actions/artifacts/example';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://gitea.com/api/v1/repos/example/example/actions/artifacts/example \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Owner of the repo
repo
required
string
Name of the repository
artifact_id
required
string
Id of the artifact
Responses
Section titled “Responses”No Content
APIError is error format response
Headers
Section titled “Headers”message
string
url
string
APINotFound is a not found empty response