“Change WP Empty Trash Time” is a small plugin that allows you to select the time in days that WordPress take to automatically empty trash. You can select the number of days at the bottom of Settings > General. This plugin wont work if the value is already defined elsewhere to avoid errors.