AnsweredAssumed Answered

How do I get a list of directories and files via the REST API?

Question asked by Dirk Sachse on Feb 15, 2019
Latest reply on Feb 15, 2019 by Roguen Keller


I would like to remove files and directories via the REST API. I think I got a basic understanding of how to do it, but I m not sure what I am doing wrong.


This is my API call:


curl -H "Accept: application/xml"  -s --noproxy "*" -k -s  --basic -u admin:password  -X GET "http://localhost:8080/pentaho/plugin/data-access/api/repo/files/tree"


This is what the documentation says:


Retrieve the recursive list of files from root of the repository based on the filters provided.


But I get nothing back.

What I want to do I to get a list of all files and directories, and then I would like to delete everything.


Maybe someone can point me in the right direction.


Thanks and Regards