code: def uninstall(self):
          
          with self._lock:
              if self._state == Bundle.ACTIVE:
                  self.stop()
  
              # Change the bundle state
              self._state = Bundle.UNINSTALLED
  
              # Call the framework
              self.__framework.uninstall_bundle(self)
docs: Uninstalls the bundle