delete
File deletion
FileUploading.delete(filename, fileQuery)
const query = {
type:"page",
entity:"editor",
id:3787
}
const value = await FileUploading.delete("file.png", query)
Schema
filename: string
File name.
example: file.png
fileQuery: IUploadingQuery
Optional set query parameters
example:
fileQuery.type: string
Type, determines the folder name in the storage
example: page
fileQuery.entity: string
Entity name from which the file is uploaded, determines the folder name in the storage
example: editor
fileQuery.id number
Identifier of the object from which the file is uploaded, determines the folder name in the storage
example: 3787
fileQuery.template string
preview template identifier
example: 1
This void method delete a file from the cloud file storage.