prefix . 'isc_index'; // phpcs:ignore $wpdb->query( "DROP TABLE IF EXISTS $table_name" ); // delete the log file if it exists $upload_dir = wp_upload_dir(); // Hash the AUTH_KEY to create the same filename that was used $log_file_name = 'image-source-control_' . hash( 'crc32', AUTH_KEY ) . '.log'; $log_file_path = $upload_dir['basedir'] . '/' . $log_file_name; if ( file_exists( $log_file_path ) ) { wp_delete_file( $log_file_path ); } }