Auto delete pages/posts without views

Hello please does anyone know a way to automatically delete posts that doesn't get views within a period of time. Lets say if a post on my site is made and within 30 days, there are no views on the post, is it possible to automatically place the post in draft or delete it

Topic wp-delete-post posts custom-post-types Wordpress

Category Web


You could develop a plugin to track which URLs are getting requested, store that as a custom field for each post, and then run a cron job to delete the post_id that have post_views == 0 after a set period of time.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.