How do I remove data from Viewtracker?
What has been deleted cannot be restored! Proceed with caution and back up the table or the entire database beforehand.
→ Read about the Viewtracker Data Structure in general
Deleting views of specific content from the database
Stop your Confluence.
Remove the Viewtracker data with the following SQL:
SQLDELETE FROM AO_05769A_VISIT_ENTITY WHERE CONTENT_ID=86639844;
Start Confluence again. The deleted entries are now gone.
Deleting views by date
If you would like to remove views by date, follow these steps:
Stop your Confluence
Remove the Viewtracker data with the following SQL:
Example for MySQLSQLDELETE FROM AO_05769A_VISIT_ENTITY WHERE VISIT_TIME < DATE_SUB(NOW() , INTERVAL 12 MONTH);
Example for Microsoft SQL
SQLDELETE FROM AO_05769A_VISIT_ENTITYsq WHERE DATEADD(year, 2, VISIT_TIME) < getdate();
Start Confluence again. The deleted entries are now gone.