It is possible to delete blog post automatically after a certain time?

Hey,

it is possilbe to delete a blog post in Confluence after a certain time?

Kind regards,

Tobi

4 answers

1 accepted

Confluence Command Line Interface can be used without taking Confluence offline or worrying about corrupting your database. Use the query in runFromSql. An alternative for OnDemand or if you don't want to do SQL is to use getBlogList to a csv file and a small script to select rows by date. In either case, use something like:

--action removeContent --id nnnnnnnn

Hi Tobi,

The answer is no, Confluence doesn't have that functionality.

Regards,

Amrta

While it's certainly not a built in feature, you could write a SQL statement against the Confluence database that runs at some interval (as a cron job, perhaps) and cleans up/removes entries that are older than a certain date.

0 vote

Matthew's answer can be used indeed. A script can be created to delete blogposts, however, note that the blogposts are inside the "content" table and this table consists of multiple FKs in the database. So, if you are willing to create a script, be sure to not violate any constraint in the process and keep the database clean.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

900 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you