This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Galaxy Bioblend API and deleting datasets from histories

I am trying to simply delete intermediate file datasets from histories on my local Galaxy instance using histories.delete_dataset(). For some reason this is not working, and I am having a tough time actually troubleshooting it. Do people have suggestions as to why this might be happening?

Thanks!

bioblend galaxy

1 answer

I went ahead and dug in to the Client object a bit more, and was able to investigate the cause of this problem. Apparently, if you are going to call histories.show_history() to retrieve history-specific data, you can't use the 'dataset_id' field as the dataset_id in histories.delete_dataset(). You actually want to use the 'id' key. This was clear after I printed our the contents of the json blob response that was given with my history_id and dataset_id parameters. This may be worth notating in the documentation. :-)

Log in to answer this question.