Skip to content

Delete a file a person added

DELETE
/v1/files/{id}
curl --request DELETE \
--url https://beta-api.plune.ai/v1/files/example \
--header 'Authorization: Bearer <token>'

✕ on a file of a case of its own, on one waiting on the case being marked in a manual run (#1234), or on one attached to a bug (#1066). It goes for good — there is no Bin for a file — and, on a case or a bug, leaves an entry on its feed. A file in the project’s bucket goes from Plune’s lists; its object is left to the bucket’s lifecycle rule. A file of a result stays with the result it was marked with: 409 result_file; a bug’s copy of a result’s picture goes only with the bug: 409 evidence_file. A reader of the project cannot delete one; someone else’s file is a 404. 120 requests a minute a person.

id
required
string

Deleted

No / invalid token or session

A reader of the project

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

Not found or not yours

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

A file of a result (code: result_file): results keep their files; or a bug’s copy of a result’s picture (code: evidence_file): it goes with the bug

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}
Retry-After
integer

Seconds until the window rolls over