You can remove opaque types and their JAR files using the following methods:
public static void removeUDT(String sqlname) throws SQLException public static void removeJar(String jarfilesqlname, int undeploy) throws SQLException
The removeUDT() method removes the opaque type, with all its casts and UDRs, from the database server. It does not remove the JAR file itself because other opaque types or UDRs could be using the same JAR file.
The removeJar() method removes the JAR file from the system catalog. The jarfilesqlname parameter is the name you specified with the setJarFileSQLName() method.
For the undeploy parameter, see Specifying Deployment Descriptor Actions.