Created
August 30, 2018 10:59
-
-
Save Phillipus/64139333f7599c6d499317051e32f60c to your computer and use it in GitHub Desktop.
#jArchi function to delete ArchiMate elements that are not references in any View in a model.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deleteUnusedElements() { | |
$("element").each(function(element) { | |
if($(element).objectRefs().isEmpty()) { | |
element.delete(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment