Unable to uninstall the module

Created on 2 August 2023, over 1 year ago
Updated 7 May 2024, 8 months ago

Problem/Motivation

I was trying to uninstall the module in favour of using entity_legal, But it does not allowing me to. It gives me the following error. Even though all my contents are deleted and there is no CT named T&C Accepted.
I guess if its because of some user accepted the T&C, then there should be a provision to delete that also which is not there in the "drupal/legal": "^3.0" version. pls refer the SS.

ddev drush pmu legal

In PmCommands.php line 214:
                                                                                                                    
  legal: There is content for the entity type: T&C Accepted. <a href="/admin/modules/uninstall/entity/legal_accept  
  ed">Remove t&amp;c accepted entities</a>.                                                                         
                                                                                                                    

Failed to run drush pmu legal: exit status 1

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇮🇳India mukhtarm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mukhtarm
  • Status changed to Closed: works as designed 8 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Well that's by design if there are existng entities. You have to click the link from your error message. Same for other entity types in Drupal! No bug.

    So first delete the entities, then uninstall the module. That's the way to go.

Production build 0.71.5 2024