Skip to content

Instantly share code, notes, and snippets.

@Phillipus
Created August 30, 2018 10:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phillipus/64139333f7599c6d499317051e32f60c to your computer and use it in GitHub Desktop.
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.
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