You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
817 B
YAML
32 lines
817 B
YAML
4 years ago
|
delete:
|
||
|
tags:
|
||
|
- files
|
||
|
summary: delete uploaded file
|
||
|
description: This operation deletes a file uploaded to NodeBB
|
||
|
requestBody:
|
||
|
required: true
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
type: object
|
||
|
properties:
|
||
|
path:
|
||
|
type: string
|
||
|
description: Path to the file (relative to the configured `upload_path`)
|
||
|
required:
|
||
|
- path
|
||
|
example:
|
||
|
path: files/uploaded_file.jpg
|
||
|
responses:
|
||
|
'200':
|
||
|
description: File deleted
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
type: object
|
||
|
properties:
|
||
|
status:
|
||
|
$ref: ../components/schemas/Status.yaml#/Status
|
||
|
response:
|
||
|
type: object
|
||
|
properties: {}
|