Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Tobias Groß December 8, 2013

Hey,

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

Kind regards,

Tobi

4 answers

1 accepted

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 1, 2014

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

0 votes
Rodrigo Girardi Adami
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 1, 2014

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.

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 1, 2014

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 votes
AmrtaA January 1, 2014

Hi Tobi,

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

Regards,

Amrta

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events