how can i change particle size by id of an already cached simulation?
If you want to change the size of a particle randomly you can go to the physics tab in a particle system and change the random value.



If you want to look at the operators in python you can go to this link

Python blender reference

If you want to delete a particle based on their age you can change the lifetime of the particle in the emission tab