pub fn delete_spec_data(conn: &Connection, spec_id: i64) -> Result<()>Expand description
Delete trunk indexed data for a spec (snapshot, sections, refs).
Only deletes snapshots with sha LIKE 'hash:%' and pr_number IS NULL,
preserving PR snapshots and commit snapshots (merge bases).
Used before re-indexing to avoid clobbering PR data.