Title: Delete Spam Daily
Author: brockangelo
Published: <strong>May 25, 2009</strong>
Last modified: May 28, 2009

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/delete-spam-daily.svg)

# Delete Spam Daily

 By [brockangelo](https://profiles.wordpress.org/brockangelo/)

[Download](https://downloads.wordpress.org/plugin/delete-spam-daily.1.0.2.zip)

 * [Details](https://test.wordpress.org/plugins/delete-spam-daily/#description)
 * [Reviews](https://test.wordpress.org/plugins/delete-spam-daily/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/delete-spam-daily/#installation)
 * [Development](https://test.wordpress.org/plugins/delete-spam-daily/#developers)

 [Support](https://wordpress.org/support/plugin/delete-spam-daily/)

## Description

This plugin schedules a daily event using wp_cron that deletes all comments marked“
spam” in the database, then optimizes the comments table.

Brief reason why I made such a low-tech plugin:

Akismet catches all the spam, but when I was looking at the size of my backups one
day,
 I noticed that there were large numbers of comment spam across several sites
that were undeleted and they made the databases fairly large. So I setup a cron 
job on my server that deletes the spam.

Since I had never written a plugin, I thought this might be helpful for those who
do not have
 a dedicated server, shell access to their site, or the knowledge of(
or interest in ) cron to set this up.

Spam is not deleted until you start the schedule after the plugin is activated. 
I created buttons
 to start and stop the schedule if you need that layer of control.
There is also a button for deleting all spam manually.

## Screenshots

 * [[
 * Pretty simple.

## Installation

 1. Upload the `delete-spam-daily` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Look under “Settings” –> “Delete Spam Daily” to activate the schedule.
 4. You can start and stop the schedule from the “Delete Spam Daily” menu.

## FAQ

  What time does comment spam get deleted?

The first time you start the schedule, spam gets deleted.
 Subsequent spam will 
be scheduled to delete every 24 hours after the first activation.

  If I de-activate this plugin, will it continue to delete spam daily?

No. The cron job is cleared upon deactivation.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Delete Spam Daily” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ brockangelo ](https://profiles.wordpress.org/brockangelo/)

[Translate “Delete Spam Daily” into your language.](https://translate.wordpress.org/projects/wp-plugins/delete-spam-daily)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/delete-spam-daily/),
check out the [SVN repository](https://plugins.svn.wordpress.org/delete-spam-daily/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/delete-spam-daily/)
by [RSS](https://plugins.trac.wordpress.org/log/delete-spam-daily/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

 * Version 1.0.2 – 5.28.09: Now optimizes the `wp_comments` table after spam is 
   deleted. Updated DB call to allow for alternate wordpress table prefix.
 * Version 1.0.1 – 5.26.09: Minor update. `add_action` was added to the “Delete 
   Spam Daily” button so it would actually delete spam once a day. 🙂 In addition
   to a “Stop Deleting Spam” button, a button was added that reschedules the cron
   to happen in 1 minute so you can be sure your crons are working right away.
 * Version 1.0 – 5.25.09: Initial Release. Included button to start deleting spam
   daily, and a button to delete spam immediately. Once the schedule was activated,
   it provided a button to stop the schedule. Shows current spam count and next 
   scheduled delete.

## Meta

 *  Version **1.0.2**
 *  Last updated **17 years ago**
 *  Active installations **80+**
 *  WordPress version ** 2.1.0 or higher **
 *  Tested up to **2.7.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/delete-spam-daily/)
 * Tags
 * [comments](https://test.wordpress.org/plugins/tags/comments/)[cron](https://test.wordpress.org/plugins/tags/cron/)
   [database](https://test.wordpress.org/plugins/tags/database/)[delete](https://test.wordpress.org/plugins/tags/delete/)
   [spam](https://test.wordpress.org/plugins/tags/spam/)
 *  [Advanced View](https://test.wordpress.org/plugins/delete-spam-daily/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/delete-spam-daily/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/delete-spam-daily/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/delete-spam-daily/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/delete-spam-daily/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/delete-spam-daily/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/delete-spam-daily/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/delete-spam-daily/reviews/)

## Contributors

 *   [ brockangelo ](https://profiles.wordpress.org/brockangelo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/delete-spam-daily/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://brockangelo.com/wordpress/plugins/delete-spam-daily)