Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Comment Delete

2,046 sites Security covered Drupal 9–11
View on drupal.org

This module provides advanced options for deleting comments, including permanently removing them, moving replies to a higher level, or unpublishing them while keeping replies. It also allows administrators to set time limits for deletions and manage granular permissions for different comment types and fields.

Advanced comment deletion rules with threaded replies handler. Adds the hard delete, partial hard delete, and soft delete handlers. Hard delete is the default Drupal core behavior, both the comment and its replies are permanently deleted. Partial hard delete permanently deletes the original comment and moves its replies up one thread level. Soft delete either unpublishes or unsets field values on the original comment and keeps its replies. Use the time limit option to prevent users deleting comments after a configurable amount of time.

Permissions

A number of user role permissions are available both statically and dynamically. Each comment type and field has its own permission sets. In addition to static permission sets that apply across all comment types and fields. See the "Comment Delete" section on the user role permissions administration page.

Usage

  1. Download and install the module. Recommended install method is composer:
    composer require drupal/comment_delete
  2. Go to the "Manage fields" tab of the entity type containing the comment field.
  3. Edit the desired comment field.
  4. Review available configurations under the comment delete section and save changes.
  5. Set comment delete user role permissions.

Upgrading from 1.x to 2.x

An automatic upgrade path is not available between these versions. Recommended to completely uninstall the module before attempting to upgrade to 2.x.

Depends on

Dependencies of the latest stable release

  • comment Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.10 Stable 9–11 Dec 10, 2024