I want to uninstall the Field module, but this module can not be uninstalled; when I try, I get the following message.
Field API to add fields to entities like nodes and users. Machine name: field Version: 8.0.6 Required by: TextNodeAdmin ToolbarAdmin Toolbar Extra ToolsFileOptionsAggregator (disabled) ImageAccelerated Mobile Pages (AMP) (disabled)Custom BlockBook (disabled)Text EditorCKEditorCommentInterface TranslationConfiguration Translation (disabled)
How do I forcefully uninstall any module that is having dependency or content inside, for example the Node module, the Views module, or any entity having content in it?
I tried using \Drupal::service('module_installer')->uninstall(['admin_toolbar']);
but then my site breaks.