add/remove particle module in python script

how to can i add/remove modules ( like lifetime ) to a specific emitter of selected particles through a python script?
this is for batch work…

Through the script below, it was possible to retrieve the information of the emitter of the selected particle system and the information of the included module.
But I want to add or delete things.


import unreal

selected_assets = unreal.EditorUtilityLibrary.get_selected_assets()

for particle_system in selected_assets:
if isinstance(particle_system, unreal.ParticleSystem):

    emitters = particle_system.get_cascade_system_emitters()

    for emitter in emitters:
        mod = emitter.get_cascade_emitter_lod_level(0)
        for a in mod.get_lod_level_modules():
             print (a.get_name())