You cannot directly remove an ECMAScript object from a driver if that object is part of a package. Designer applies this restriction to ensure that an object referencing this ECMAScript object works correctly after being deployed to the Identity Vault. For example, if you are using a method from an ECMAScript object in a policy or a workflow and the ECMAScript object is removed from the driver, the policy will not work when it is deployed.
To remove an ECMAScript object from a driver, perform the following actions:
Open your project in Modeler.
Navigate to the Identity Vault properties page, select Enable package Developer Mode and then click Apply.
Remove the ECMAScript object from the driver.