pydio / pydio-core

Pydio 8 official repository
https://pydio.com
GNU Affero General Public License v3.0
869 stars 289 forks source link

Pydio delete API and move API [APIv1] #1431

Open raamee opened 6 years ago

raamee commented 6 years ago

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.

raamee commented 6 years ago

Can any one help with this? The API examples site is not working.

cdujeu commented 6 years ago

hi raamee - sorry, the team is massively on vacations during august :-) Can you post the call that you tried? Charles

raamee commented 6 years ago

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.

raamee commented 5 years ago

Hi Charles,

Do you have any update?

vclsystem commented 5 years ago

Hi Charles,

Do you have any update?

jthabet commented 5 years ago

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