Skip to main content

remove

Description:

Remove a file or folder by just passing the filename

Request

https://api.moinet.io/moibit/v1/remove

Request type - POST

Headers#

Header KeyHeader ValueOptional
nonce<developer_nonce> No
signature<signature gotten after signing developer_nonce by developer> No
developerKeypublic id of the developerNo
networkIDID of the network the file exist No
appIDID of the app the file the file exist Yes
enduser_nonce<enduser nonce>No if enduser has moi_id
enduser_signature<signature gotten after signing enduser_nonce by enduser>No if enduser has moi_id
enduserIDId of the enduser if end-user doesn't have moi_id Yes

Parameters#

Param KeyParam TypeDescriptionOptional
pathStringFile name or path No
isdirBooleanTrue: folder, false:fileNo
versionIntegerFile version you want to delete Yes
operationTypeInteger0: remove, 1: restore No

Sample Response#

{
"meta": {
"code": 200,
"requestId": "d99bb717-c8cb-4f24-9c5f-58df1634e466",
"message": "removed successfully"
},
"data": "ok"
}