@jonathanbardo Maybe we should do it like this?

```php
$wpdb->query(
	$wpdb->prepare(
		"
		DELETE t1, t2, t3
		FROM {$wpdb->stream} as t1
			INNER JOIN {$wpdb->streamcontext} as t2
			INNER JOIN {$wpdb->streammeta} as t3
		WHERE t1.type = %s
			AND t1.ID=t2.record_id
			AND t1.ID=t3.record_id;
		",
		'stream'
	)
);
```