Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Delete Hidden Posts

This is a plugin for Question2Answer websites that deletes all hidden posts with/with-out having children posts

The latest version of Question2Answer does not allow to delete the posts directly which have some children posts (the comments and answers for a question are said to be children posts for that question and the comments to a answer are said to be children posts to a answer ). You must have to hide and then delete all its child posts one by one before you delete the parent one. This applies to both the Quesions and answers as well.

This plugin adds a Delete button right after the question / answer / comment (can be controlled via admin panel options) which can delete the posts (question / answer / comment) with a single click.

Also if your website has many hidden posts which have many child posts this plugin can delete them with one click effort.


  • Ability to delete all the hidden posts from Question2Answer database having dependencies
  • When a question is deleted all its Answers, Comments gets deleted
  • When a answer is deleted all its Comments and Related Questions gets deleted
  • Buttons are displayed after a Question's or Answer's or Comemnt's response buttons - which helps to delete the post with one click

Version History

  • 1.1
    • added ask user confirmation while deleting a question / answer / comment
    • added ask admin confirmation while deleting all hidden posts
    • removed css styling , only handling with q2a provided classes
    • improved redirect logic
    • improved code
  • 1.0
    • initial stable release


This is beta code. It is probably okay for production environments, but may not work exactly as expected. Refunds will not be given. If it breaks, you get to keep both parts.

About Question2Answer

Question2Answer is a free and open source platform for Q&A sites. For more information, visit:


Deletes all hidden posts from q2a website with one click




No packages published