Pentaho

 View Only

 How to delete a ressource of the Pentaho Server using REST API ?

  • Pentaho
  • Pentaho
  • Pentaho Server
Arnaud Simon's profile image
Arnaud Simon posted 09-06-2019 07:42

I checked the documentation, but I can't delete my ressource (all the other features of the REST API are working), do you know the correct syntax to delete a ressource ?

 

PUT command :

http://my_pentaho_server/pentaho/api/repo/files/home:suzy:dossier_test:no_data_report.prpt/delete

gives me 500 internal server error.

 

I tried the DELETE command as well but it didn't changed anything


#PentahoServer
#Pentaho
Vignesh JM's profile image
Vignesh JM

Hi, try the below command. It will work fine.

 

curl -u admin:password -X PUT -d'FILE ID' http://IP:PORT/pentaho/api/repo/files/delete

Arnaud Simon's profile image
Arnaud Simon

Thanks you it worked ! But when I import this curl command into Postman (software with good UI too make webrequests) it doesn't work surprisingly.