code: public void removeExtension(DefaultLocalExtension extension) throws IOException
      {
          File descriptorFile = extension.getDescriptorFile();
  
          if (descriptorFile == null) {
              throw new IOException("Exception does not exists");
          }
  
          descriptorFile.delete();
  
          DefaultLocalExtensionFile extensionFile = extension.getFile();
  
          extensionFile.getFile().delete();
      }
docs: Remove extension from storage.
  
  @param extension extension to remove
  @throws IOException error when deleting the extension