query( "DROP TABLE IF EXISTS {$wpdb->prefix}bd_foobot_sensor_data" ); $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}bd_foobot_device_data" ); // Delete our transients delete_transient( 'foobot-api-device-updated' ); /** * TO DO * ===== * To delete the device transients, we need to get all the * device UUIDs and loop through them. */ // delete_transient( 'foobot-api-data-updated-' . $uuid);