-- Delete all secure chat messages and conversations
-- Run this to start fresh with E2EE chat

BEGIN;

-- Delete all messages first (foreign key dependency)
DELETE FROM public.secure_messages;

-- Delete all conversations
DELETE FROM public.encrypted_conversations;

COMMIT;

-- Verify deletion
SELECT COUNT(*) as message_count FROM public.secure_messages;
SELECT COUNT(*) as conversation_count FROM public.encrypted_conversations;
