Deactivating a Push Topic

You can temporarily deactivate a PushTopic, rather than deleting it, by setting the isActive field to false.

  • To deactivate a PushTopic by Id, execute the following Apex code:

    1PushTopic pt = new PushTopic(Id='0IFD0000000008jOAA', IsActive = false);
    2update(pt);