Skip to content

Guide to Uninstall Knowledge Module and All Dependencies

⚠️ Important Note

This guide assumes that ALL knowledge-related modules are installed. If some modules are already uninstalled on your system, simply skip those steps. The guide is designed to cover the most complex scenario where all modules are active.


📋 List of Modules to Uninstall

Modules that depend on document_page (uninstall in order):

  1. document_page_approval – Approval system for pages
  2. document_page_group – Access groups for documents
  3. document_page_portal – Portal access for document pages
  4. document_page_project – Project integration
  5. document_page_reference – References in document pages
  6. document_page_tag – Tags for pages

Base modules:

  1. document_page – Main document pages functionality
  2. knowledge – Base knowledge management module

Independent module (optional):

  • document_url – Does NOT depend on knowledge; can be kept if desired

🔍 Pre-Verification

1. Check current module status

# Run from your terminal (outside of psql)
psql postgres://odoo:odoo@localhost:5432/communitynaturalfoods-master-963663 \
  -c "SELECT name, state FROM ir_module_module WHERE name IN ('knowledge', 'document_page', 'document_page_approval', 'document_page_group', 'document_page_portal', 'document_page_project', 'document_page_reference', 'document_page_tag', 'document_url') ORDER BY name;"

2. Database Backup (Optional)

# Create backup before proceeding
pg_dump -h localhost -p 5432 -U odoo communitynaturalfoods-master-963663 \
  > backup_knowledge_$(date +%Y%m%d_%H%M%S).sql

📝 Uninstall Process

  1. Enable developer mode

  2. Go to Settings → Activate Developer Mode

  3. Uninstall modules in the following order:

  4. Go to Apps → Installed Modules

  5. Search and uninstall each module below in order:
1. document_page_approval
2. document_page_group
3. document_page_portal
4. document_page_project
5. document_page_reference
6. document_page_tag
7. document_page
8. knowledge

Option B: Via Command Line

# Connect to container
make ssh

# Uninstall all document_page dependent modules
odoo -c /etc/odoo/odoo.conf -d communitynaturalfoods-master-963663 \
  --update document_page_approval,document_page_group,document_page_portal,document_page_project,document_page_reference,document_page_tag \
  --stop-after-init

# Then uninstall document_page
odoo -c /etc/odoo/odoo.conf -d communitynaturalfoods-master-963663 \
  --update document_page \
  --stop-after-init

# Finally uninstall knowledge
odoo -c /etc/odoo/odoo.conf -d communitynaturalfoods-master-963663 \
  --update knowledge \
  --stop-after-init

# Exit container
exit

✅ Post-Uninstall Verification

1. Check Final Module Status

# Run from your terminal (outside of psql)
psql postgres://odoo:odoo@localhost:5432/communitynaturalfoods-master-963663 \
  -c "SELECT name, state FROM ir_module_module WHERE name LIKE 'knowledge%' OR name LIKE 'document_page%' ORDER BY name;"

All modules should show uninstalled status.

2. Restart Odoo

make restart

3. Verify Functionality

  • Access Odoo at http://localhost:8065
  • Verify critical functions are still working:
  • POS
  • Inventory
  • Accounting
  • Sales

⚠️ Important Warnings

  1. Data Loss: All content created using these modules (pages, tags, references) will be permanently deleted.
  2. Safe for CNF Modules: This will NOT affect:

  3. connector_cnf_inventory

  4. pos_cnf
  5. account_sage_reports
  6. cnf_product_addons
  7. Does Not Affect Enterprise documents App: These modules are unrelated.

📊 Module Summary

Status Module Dependencies Action
✅ document_page_approval document_page, mail Uninstall
✅ document_page_group document_page Uninstall
✅ document_page_portal portal, document_page Uninstall
✅ document_page_project project, document_page Uninstall
✅ document_page_reference document_page, web_editor Uninstall
✅ document_page_tag document_page Uninstall
✅ document_page mail, knowledge Uninstall
✅ knowledge base Uninstall
🟡 document_url mail Optional