Class Index

Classes


Delete

Deletes Directories and Files
Defined in: delete.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Delete(data, verbose, fields)
For every object in "data", this endpoint deletes the defined file or directory
Class Detail
Delete(data, verbose, fields)
For every object in "data", this endpoint deletes the defined file or directory
Parameters:
data
An array of object that define the assets to decompress and where to place contents [{"id": 123456}, {"path": "Folder/To/Delete/"}, ...]
verbose Optional, Default: false
Setting this to true will collect a variety of default values for each asset.
fields Optional
An array of field id's to collect the values for each asset
Returns:
[{theRemovedFileInfo},{theRemovedFolderInfo, ... ]
/wf/restapi/v2/delete

Parameters:
data=[{"id":201629304},{"path":"Folder/To/Delete/"}]
verbose=true

 Response:
 [
	 {
	   "id": 201629304,
	   "name": "test.txt",
	   "path": "Folder/test.txt",
	   "height": 0,
	   "width": 0,
	   "bytes": 0,
	   "lastModified": 1507837323000,
	   "mimeType": "text/plain",
	   "previews": {
		 "thumbnail": "../servlet/jb.view?table=thumbnails&col=thumbnails&id=pe_323031363239333034",
		 "viewex": "../servlet/jb.view?table=viewex&col=viewex&id=pe_323031363239333034",
		 "downloadUrl": "../servlet/dload?id=201629304"
	   }
	 },
	 {
	   "path": "Folder/To/Delete/",
	   "name": "Delete",
	   "resolver": "directory://254"
	 }
 ]

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 06 2018 16:08:51 GMT-0500 (CDT)