How to add and delete script at runtime?

Hi,

I added the script at runtime but i dont know how to delete it runtime.

please help me how to delete the script at runtime?.

ThankYou.

Destroy.

Destroy(testObject.GetComponent(“testScript”));
testObject.AddComponent(“testComponent”);

add

remove