Use API to Remove a dataset from a recipe

Solved!
NN
Use API to Remove a dataset from a recipe

Hi Team,

Wanted to check if there is a way to remove a dataset from a recipe using the API.

I do see the options to add or replace a dataset , but couldnt find a way to remove.

https://doc.dataiku.com/dss/latest/python-api/recipes.html#dataikuapi.dss.recipe.DSSRecipeSettings

Any suggestions are welcome ๐Ÿ™‚ 

 

Regards

0 Kudos
1 Solution
HarizoR
Developer Advocate

Hi Nishant,

There is indeed no method to programmatically remove a Dataset from a given recipe. One workaround would be to duplicate the existing recipe's settings , change the input(s)/output(s) Dataset(s), delete the old recipe and create the new one.

Hope this helps!

 

Best,

Harizo

View solution in original post

0 Kudos
2 Replies
HarizoR
Developer Advocate

Hi Nishant,

There is indeed no method to programmatically remove a Dataset from a given recipe. One workaround would be to duplicate the existing recipe's settings , change the input(s)/output(s) Dataset(s), delete the old recipe and create the new one.

Hope this helps!

 

Best,

Harizo

0 Kudos
NN
Author

Thanks Harizo For confirming.

0 Kudos