Book a Demo

Author Topic: How to delete elements correctly?  (Read 3858 times)

siaccarino

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-1
    • View Profile
How to delete elements correctly?
« on: March 06, 2019, 10:23:45 pm »
If I want to delete an Element from EA - via Package.Elements.DeleteAt() - do I have to take care of all diagram references and connectors and delete them beforehand?
I want to avoid orphans in the DB
« Last Edit: March 06, 2019, 10:28:57 pm by siaccarino »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to delete elements correctly?
« Reply #1 on: March 06, 2019, 10:53:00 pm »
If I want to delete an Element from EA - via Package.Elements.DeleteAt() - do I have to take care of all diagram references and connectors and delete them beforehand?
I want to avoid orphans in the DB
No, if you use the API, EA will take care of diagram objects etc.

Geert

siaccarino

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-1
    • View Profile
Re: How to delete elements correctly?
« Reply #2 on: March 06, 2019, 11:04:40 pm »
thanks!