DELETE FROM Station_Data WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM Station_Comment WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM Channel_Data WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM Channel_Comment WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM Polynomial WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM PN WHERE key IN (SELECT pn_key FROM Polynomial WHERE sta = 'HAST' AND net = 'BK');
DELETE FROM PN_Data WHERE key IN (SELECT pn_key FROM Polynomial WHERE sta = 'HAST' AND net = 'BK');
DELETE FROM Coefficients WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM DM WHERE key IN (SELECT dm_key FROM Decimation WHERE sta = 'HAST' AND net = 'BK');
DELETE FROM Decimation WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM PZ WHERE key IN (SELECT pz_key FROM Poles_Zeros WHERE sta = 'HAST' AND net = 'BK');
DELETE FROM PZ_Data WHERE key IN (SELECT pz_key FROM Poles_Zeros WHERE sta = 'HAST' AND net = 'BK');
DELETE FROM Poles_Zeros WHERE sta = 'HAST' AND net = 'BK';
DELETE FROM Sensitivity WHERE sta = 'HAST' AND net = 'BK';
COMMIT;
EXIT;
