Book a Demo

Author Topic: Deleting Package baselines  (Read 5474 times)

shimon

  • EA User
  • **
  • Posts: 172
  • Karma: +6/-0
    • View Profile
Deleting Package baselines
« on: August 04, 2015, 11:48:05 pm »
Hi,
I have a model that got a little too big for my liking. I would like to find and delete old package baselines. Is there a simple script that does this?

Is it safe to delete all records from the snapshot table, or are there other related records that need to be deleted as well?
Thanks,

Shimon J.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Deleting Package baselines
« Reply #1 on: August 05, 2015, 08:42:29 am »
The API contains a set of functions for working with baselines.

Even though it may not be the fastest way to do it I recommend adapting the 'JavaScript - Recursive Model Dump Example' using

Project.GetBaselines
and
Project.DeleteBaseline

(There's also JScript and VBScript versions of that script, so whichever you're most comfortable with)