Navigation Menu

Skip to content

trepmal/scrub-old-posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrub Old Posts Build Status

Remove content older than a given date.

Installation

Recommended:

wp package install trepmal/scrub-old-posts

Synopsis

wp scrub posts --date=<date> [--post_type=<post_type>] [--posts_per_page=<num>] [--dry-run]

Options

--date=<date>
  Delete posts older than this date.

[--post_type=<post_type>]
  Post type. Default: post

[--posts_per_page=<num>]
  Process in batches of <num>. Default: 100

[--dry-run]
  Dry run.

[--yes]
  Answer "yes" to confirmation.

Examples

wp scrub posts --date='-1 month'
wp scrub posts --date='2015-01-01'

About

WP CLI. Remove posts and associated meta/comments older than given date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published