pydio-core
pydio-core copied to clipboard
Pydio delete API and move API [APIv1]
Hi,
I am using Pydio 6.x.x version ( unfortunately cannot upgrade at this moment ). The API example page https://pydio.com/en/docs/developer-guide-v8/filesystem-api-v1 is not displaying the examples properly ( the site has some issues ). Please let me know the exact delete API and move API for Pydio 6.x.x version.
Thank you.
Can any one help with this? The API examples site is not working.
hi raamee - sorry, the team is massively on vacations during august :-) Can you post the call that you tried? Charles
Hi Charles,
Ahh, ok :)
According to your API page, we need to use the following:
/workspace_alias/delete/nodes+
But I am not sure how to use that in curl command.
I tried,
curl -u $USERNAME:$PASSWORD -X DELETE "$HOST/api/$REPOSITORY/delete/testfile"
It returns,
<?xml version="1.0" encoding="UTF-8"?><tree ><message type="ERROR">The selection is empty!
: - catchException(AJXP_Exception)
I am stuck. Please help.
Thank you.
Hi Charles,
Do you have any update?
Hi Charles,
Do you have any update?
Hi,
you can delete files using the api like this :
http://<pydio-uri>/api/<workspace id or alias>/delete/?file=/<file to delete>
curl -X GET -u <username>:<password> 'http://<pydio-uri>/api/<workspace id or alias>/delete/?file=/<file or folder name>'
if you are using https, add --insecure