# Delete the given username. DAViCal uses foreign keys properly
# and only supports postgres, so we let the ON DELETE CASCADE
# trigger handle most of the work.
+ raise NonexistentAccountError.new(account) if not user_exists(account)
+
sql_queries = ['DELETE FROM usr WHERE username = $1']
begin