Thank you for your reply Cory.
It seems, however, that also the Disconnect() / Connect() method crashes if used in a macro.
Isn’t there any other way to free memory while in use? I could also accept to close and reopen Paraview, as long as it is automated.
I just marked this as a showstopper for the 5.11 release. (Reference the bug Cory pointed at.) I hate crashes, and it looks like there isn’t a workaround. Thanks Gianmarco for reporting.