sketch-hq / SketchAPI

The JavaScript plugin library embedded in Sketch
https://developer.sketch.com/reference/api
MIT License
842 stars 126 forks source link

APIs missing: remove Flow (prototyping) #882

Closed matteogratton closed 1 year ago

matteogratton commented 2 years ago

I don't know if this is something that we should just add to the documentation or if we should implement a function to do it.

in order to remove a flow, we currently have to write: layer.flow = undefined; An option could be to have a function that removes it from the selected layer, as well as the function to remove the layer. Something like: layer.flowRemove();

The way to remove it is missing in the Documentation in any way and I spent time finding it and solved thanks to @lrossi.

mathieudutour commented 2 years ago

or just delete layer.flow I think, which read really nicely