Book a Demo

Author Topic: Delete objects / drawing items no longer used, how  (Read 5251 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Delete objects / drawing items no longer used, how
« on: February 08, 2010, 01:08:11 pm »
Is there a fast way to delete from the Project Browser everything that is no longer being used in the project?  I know that if you delete something from the diagram it remains in the Project Browser, and you have to select it and delete it from there.  I have several items that are thus no longer used and I'd like to be able to delete them by some means other than inspecting everything in the Project Browser to see if it is no longer used, and deleting it if so.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Delete objects / drawing items no longer used,
« Reply #1 on: February 08, 2010, 02:49:59 pm »
I don't think this answers your actual question, but is just a tip. When deleting elements from the diagram, if you hold down the [Ctrl] key it will also delete them from the Project Browser.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Delete objects / drawing items no longer used,
« Reply #2 on: February 08, 2010, 02:59:38 pm »
If you want to delete items from your model that do not appear on any diagrams, try using the built-in "Find Orphans" model search.

For more information on using model searches, see:
http://www.sparxsystems.com/uml_tool_guide/uml_modeling_tool_features/search_view.html

You should be able to select the returned search results and delete them as you wish.  Please note however that these search results only indicate that the element is not visible on any diagrams - this does not necessarily mean that they are not being referenced by other elements and could potentially still be important to your model.

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Delete objects / drawing items no longer used,
« Reply #3 on: February 08, 2010, 03:44:33 pm »
This looks like a job for a script...
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: Delete objects / drawing items no longer used,
« Reply #4 on: February 08, 2010, 10:48:44 pm »
Quote
If you want to delete items from your model that do not appear on any diagrams, try using the built-in "Find Orphans" model search.

Thanks, Aaron.  That works fine.  Wow!  Didn't know I had so many orphans. :-X