ammcom
ammcom

Reputation: 1034

Clear laravel telescope manually

I have a running Laravel application in production, I noticed that the database is getting Giantic so I checked the storage size of each table: enter image description here

So it seems the telescope log is consuming a lot maybe because of a broken cron job, any way I run the following command: php artisan telescope:prune it took ages then it reported that a number of entries are cleaned, but the database size did not change and still the same as the image above Can I truncate the two telescope tables in the database manually? is it safe?

Upvotes: 0

Views: 1465

Answers (1)

Moubarak Hayal
Moubarak Hayal

Reputation: 209

You can use php artisan telescope:clear to remove / clear entries from Telescope.

also you might be able to use php artisan telescope:prune (have not used it before)

Good luck

Upvotes: -1

Related Questions