Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Pydio delete API and move API [APIv1] #1431

Open
tdram opened this issue Aug 21, 2018 · 6 comments
Open

Pydio delete API and move API [APIv1] #1431

tdram opened this issue Aug 21, 2018 · 6 comments

Comments

@tdram
Copy link

tdram commented Aug 21, 2018

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.

@tdram
Copy link
Author

tdram commented Aug 22, 2018

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

@cdujeu
Copy link
Member

cdujeu commented Aug 26, 2018

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

@tdram
Copy link
Author

tdram commented Aug 27, 2018

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.

@tdram
Copy link
Author

tdram commented Oct 3, 2018

Hi Charles,

Do you have any update?

1 similar comment
@vclsystem
Copy link

Hi Charles,

Do you have any update?

@jthabet
Copy link

jthabet commented Oct 4, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants