7.1.3. Deleting Section

Deleting means automatically deleting posts that are crawled by the plugin.

7.1.3.1. Deleting is active?

Enable this to activate automatic deleting of the posts that are crawled by the plugin. When you enable this, suitable posts (see: Delete posts older than (in minutes)) of the sites whose Active for post deleting? setting is checked will be deleted. If a site’s Active for post deleting? setting is not checked, the posts saved by using that site’s settings will not be deleted.

Note

For the posts to be deleted, both this setting and Active for post deleting? setting of the site must be enabled.

7.1.3.2. Post Delete Interval

The time interval set in this setting will define how much time apart the post deleting job should run. See Maximum number of posts to delete for each run for an example.

Note

This setting is visible only if Deleting is active? is enabled.

7.1.3.3. Maximum number of posts to delete for each run

The value set in this setting defines how many posts in total can be deleted when this event is run. The total count is calculated considering posts from all sites that are active for post deleting. This setting’s value must a number that is greater than 0.

Let’s consider the following case. You have 10 active sites each having 5 posts that are suitable for deletion as shown in the following table.

Table 7.11 Active sites and their posts suitable for deletion
Site Name Count of posts suitable for deletion
Site 1 5
Site 2 5
Site 3 5
Site 4 5
Site 5 5
Site 6 5
Site 7 5
Site 8 5
Site 9 5
Site 10 5

Let’s also assume these. You have set this setting’s value to 20. Also, Post Delete Interval is set to Every 30 minutes. In this case, post deleting event will automatically delete the posts by following a schedule shown in the following table.

Table 7.12 Simulation of deletion of the posts for the example case
Time (minutes) Site Name Deleted Post Count
0
Site 1
Site 2
Site 3
Site 4
5
5
5
5
30
Site 5
Site 6
Site 7
Site 8
5
5
5
5
60
Site 9
Site 10
5
5

7.1.3.4. Delete posts older than (in minutes)

The number set in this value defines at least how many minutes old a post should be so that it is suitable for deletion. When a post’s age is calculated, its creation date is used.

Note

Post creation date is the WordPress post’s Publish date. So, if you also save the post creation date by retrieving it from the target web site, then that that will be considered when determining the age of the post.

For example, let’s say that current date is 02.10.2019 12:00 and that you have set the value for this setting to 43200, which is 30 days. In this case, all posts, which were crawled by one of the sites that is currently active for post deleting (See: Active for post deleting?), that were created before 02.09.2019 12:00 will be deleted considering the values you have defined in Maximum number of posts to delete for each run and Post Delete Interval.

7.1.3.5. Delete post attachments?

Normally, the plugin does not delete post attachments when deleting the posts. If you enable this setting, the posts will be deleted along with their attachments.

The attachments are the media items (see Media Library at WordPress) attached to the posts. When crawling a post, the plugin saves their images and files as media items in WordPress and attaches those media items to the post. Therefore, when you enable this setting, all of the images and files saved into your WordPress site by the plugin will be deleted along with the post.