OK if you are not familiar with scripts and SQL: it's well worth the time to learn this if you are going to use EA extensively.
EA can do a lot but sometimes it's missing some small feature like the one you've run into (just browse the forum...). If you now how to write SQL and scripting then you can sometimes work around that problem and get the job done or spend a lot less time.
That much said,
keep in mind Geert's an qwerty's warnings and here's the script that will do what you asked (and since you are new to this i should mention that you need the 'Corporate' edition of EA to actually create and run scripts, look at
http://www.sparxsystems.com/products/ea/index.html#editions):
First, create a SQL Select query using the model search window, SQL tab. This is just a sanity thing to make sure that the delete statement we are going to create will indeed select the expected activities:
select o.Name, o.CreatedDate,o.ModifiedDate, p.*
from t_objectproperties p
inner join t_object o on o.object_id = p.object_id
where p.property in ('Test1','Test2')
and o.Object_Type = 'Activity'Secondly, if you have checked you get the correct activities, all you need to do is change the line
select ... into
delete p.* (at least, if you are using a plain EAP file for your repository, for other databases consult the internet ('ff googele'

and run this in a script:
sub main
dim SQL :
SQL = _
+" delete p.*" _
+" from t_objectproperties p" _
+" inner join t_object o on o.object_id = p.object_id" _
+" where p.property in ('Test1','Test2') " _
+" and o.Object_Type = 'Activity'"
Repository.execute(SQL)
end sub
mainYou run the script like this (provided you have EA professional):
- open the scipt view in EA (view/scripting)
- creating a script group of type Normal
- add a new vbscript to this group
- replace the content of that script with the above
- BACKUP the repository
- run it
- check the result using the SQL select we started with: it should now return no results
- keep you backup around for some time, just in case
good luck!
Paulus
Oh, and just an afterthought: if you don't have the EA version with scipting enabled you can run the SQL delete directly on the database. if you have an EAP and have MS access: backup the EAP file, rename the extension to .accdb and open it with MS Acces. Run the SQL delete, change the extension back to EAP and check the result in EA.