code: @Unbind(id = "importDeclarations")
      void unbindImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) {
  
          try {
              if (!declarationsManager.matched(importDeclarationSRef)) {
                  LOG.debug("Declaration {} do not match service, skipping",declarationsManager.getDeclaration(importDeclarationSRef));
                  return;
              }
  
              LOG.debug(linkerName + " : Unbind the ImportDeclaration "
                      + declarationsManager.getDeclaration(importDeclarationSRef));
  
              synchronized (lock) {
                  declarationsManager.removeLinks(importDeclarationSRef);
                  declarationsManager.remove(importDeclarationSRef);
              }
          } catch(Exception e){
              LOG.error("Failed to unbind declaration",e);
          }
  
      }
docs: Unbind the {@link ImportDeclaration}.