Author Topic: How to delete a package  (Read 3098 times)

MichaelG

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to delete a package
« on: April 09, 2013, 08:57:22 pm »
Hello,

I like to know how it is possibile to delete a package in an Enterprise Architect model via the C# API.

I already used the search function of the forum and I read the api documentation but I don't find any solution to delete a package.

Is there any way without deleting everything manually by sql statements?

Regards,
Michael

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to delete a package
« Reply #1 on: April 09, 2013, 09:00:43 pm »
Sure, you just need to select its parentPackage and then do:
Code: [Select]
parentPackage.Packages.DeleteAt(i);
Geert