Revit Remove examples
Removing pinned elements and closed worksets
Remove will not delete pinned elements as well as the ones on closed worksets. To enable processing the mentioned groups, the user needs to set the action config (typically created with Ctrl+Shift+B menu in Grasshopper and/or the
CreateObject component). The script below shows how to delete all generic annotations from the model, incl. pinned ones and ones on closed worksets.