How to delete logs?

It is no longer possible to delete the log starting with version 4.6.0. You can only do it manually from the database, but this implies certain possibly unwanted results.

There are 3 tables that take into account the reports and the number of downloads:

  • download_log: used for more detailed analysis + the tables in the reports with the top downloads and user downloads
  • dlm_reports_log : used for the chart
  • dlm_downloads: used for calculating download count in front, All Downloads and Dashboard widget

Warning! Deleting the dlm_downloads table will affect the front, dashboard and general download counts. The other 2 tables are the ones that are required to process the Reports page.

We recommend that you do a back-up of your site before you delete anything.

Note: It is strongly recommended that you seek the expertise of a skilled developer to address this issue. Please ensure you have your MySQL and phpMyAdmin credentials prepared for communication with the chosen professional.

Remove download log entries with Enhanced Metrics

Another solution would be to use our Download Monitor Enhanced Metrics extension. Starting with our 1.1.0 version we introduced the possibility to remove download log entries which are older than a selected value. The removal process is executed daily. In order to be able to use this option you need to go to your WordPress dashboard > Downloads > Settings > Advanced > Reports > Max logs duration > set there the value you need > Save changes.

Was this article helpful?
0 Yes 1 No
Start Protecting your WordPress Downloads

Protect and track downloads on WordPress... What are you waiting for?