Hey guys,
I’m currently setting up my MpRecipe, and I was wondering how can I delete existing recipes? I’ve already looked through the MappFramework, but I can’t find the portion of the code that handles deleting.
Hi,
it depends a bit on your use case.
do you use a visualization together with your mpRecipe functions?
And if yes, do you use the MpRecipeUi function block to connect the visu with the mappRecipe functions? Then you can use the delete functionality from mpRecipeUI:
https://help.br-automation.com/#/en/4/mapptechnology/mapp_services/mprecipe/lib/dataenum/datentypen/mprecipeuirecipetype.html
If no, you can use the FileIO function “FileDelete”, because in the end every recipe is just a file inside a file device.
https://help.br-automation.com/#/en/4/libraries/fileio/fbks/filedelete.html
Best regards!
1 Like
Oh, FileDelete is perfect, thanks Alexander
1 Like