Add option to remove .log files on WP Engine

What issue or error are you experiencing?

Every push and pull creates a .log file (and SQL if pushing/pulling the DB) in the _wpeprivate folder on WP Engine.

These files never delete and count towards our storage usage, nor can we run a cron to delete them via a plugin due to file permissions


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

This is every single push and pull


I have tickets in with WPE for a solution and am also raising it here.

Can we have a setting to disable log files being created server side?

Thank you for sharing this @jon_stormbox! I’ve shared it with the Local Devs. We’ll see if we can figure out a better way for purging old logs.

Any progress on this?

I have attached an example

Work to investigate and fix this is scheduled to start later this month, @jon_stormbox. We’ll update this post when we have more to share about how this will be solved. Thank you again for reporting this.