Deleting terminals

Use the disconnect method to delete terminals from CICS®. Ensure that all terminals are deleted without errors before your application ends. To purge a terminal while a transaction is still running, set the PurgeOnDisconnect property to true.

term.setPurgeOnDisconnect(true);
term.disconnect();

After you have deleted the terminal from CICS, you can install it again by issuing one of the connect() methods:

term.disconnect();

.....

term.connect();

The Session parameter does not apply to a disconnect call. Deleting a terminal is a synchronous operation.