code: public void unbind(DataSource dataSource) throws NamingException {
          if (dataSource == null) {
              throw new IllegalArgumentException("dataSource cannot be null");
          }
          String jndiUrl = this.dataSourceBindings.get(dataSource);
          if (jndiUrl == null) {
              throw new NamingException("No such binding");
          }
          this.initialContext.unbind(jndiUrl);
          this.dataSourceBindings.remove(dataSource);
      }
docs: Unbinds a data source.
  
  @param dataSource the {@link DataSource} to unbind.
  @throws NamingException if an error occurs during unbinding.