how to delete particle system when finished unity code example
Example: c# delete particle system after finished
Destroy(gameObject, GetComponent<ParticleSystem>().startLifetime);
Destroy(gameObject, GetComponent<ParticleSystem>().startLifetime);