Delete a file a person added
const url = 'https://beta-api.plune.ai/v1/files/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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://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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Deleted
No / invalid token or session
A reader of the project
object
Example generated
{ "error": "example"}Not found or not yours
object
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
object
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.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over