hi,
currently the virtuser creation and working is described here
http://trac.roundcube.net/wiki/Howto_Config, section "Configuring for Virtual Users"
It was ok for 0.3x but not for 0.4
identities tables" -> if tables are correctly innodb, and all fk's are active, the cascade will handle all connected record deletion upon deleting the user entry
regards,