Deleting zombie Parameters

Hi, I’m trying to delete specific redundant parameters from a model (needs to work in both Revit 2024 and 2025), some are vanilla project parameters and some are project parameters created from shared parameters.

In Dynamo i can use Clockwork’s Document.ProjectParameters to capture all the project parameters created from Shared Parameters (not sure why it doesn’t pick up vanilla project parameters), and I can delete them with the OOB Delete node. They vanish from the Revit UI as desired but they live on in the database to be picked up again by the Clockwork node as Zombie parameters.

In Rhino.Inside Revit I can collect the vanilla project parameters and project parameters from shared parameters but I can only delete the vanilla project parameters, but those must definitely be gone from the database as RIR doesn’t collect them anymore.

In Python in Dynamo, i can collect all the parameters, delete both the vanilla and project parameters from shared parameters, but they all live on as zombie parameters (this is the case with the OOB, GeniusLoci and Springs delete nodes).

What I’m looking for is killing these redundant vanilla and project from shared parameters the way you can with the Lookup tool. Any advice please? (This seems to be an API question?)

Thanks!

Hey,

Try this

1 Like

Thanks Marcel, that Lookup>SnoopDB>Delete is what i want to replicate but i need to be able to do it en masse for numerous specific parameters.

There’s a handy warning in there though about it deleting those parameters from the families too, which is both risky and super helpful depending on the context.

Simple graph; select, filter, check, delete - be careful what you wish for

1 Like

Hi Mike, thanks for this, i copied your graph and it worked perfectly, the parameters are no longer collected by All Elements of Class and the total number of parameters goes down.

Which is very confusing! I think the problem is I’ve been using a Python script with a FilteredElementCollector().OfClass(ParameterElement) instead of the AllElementsOfClass node and that still finds the deleted parameter, (but can’t find a specific project parameter i created for the test that is visible in the UI).

So it looks like the solution is to select the parameters by Class using the OOB node (especially as my Python script is behaving erratically). Thanks!

1 Like