Manage comment lifecycle with soft delete for moderation and hard delete for permanent removal
Deletion Type | Use Case | Data Retention | Reversible | Best For |
---|---|---|---|---|
Soft Delete | Content moderation, policy violations | Data preserved with isDeleted: true | Yes | Flagged content, temporary removal |
Hard Delete | Inappropriate content, GDPR compliance | Data permanently removed | No | Spam, severe violations, data purging |
hardDelete
parameter is not specified or set to false
.Parameter | Type | Required | Description |
---|---|---|---|
commentId | String | Yes | Unique identifier of the comment to delete |
hardDelete | Boolean | No | true for permanent removal, false for soft delete (default) |