-- Clear all permissions and role_permissions
-- Run this BEFORE running seed_permissions_rbac.py

BEGIN;

-- Delete all role_permission mappings
DELETE FROM role_permissions;

-- Delete all permissions
DELETE FROM permissions;

COMMIT;

-- Verify they're empty
SELECT 'Permissions cleared:' as message, COUNT(*) as count FROM permissions
UNION ALL
SELECT 'Role-permissions cleared:', COUNT(*) FROM role_permissions;
