>>>but the messages with "Delivered" status are not being deleted from the database! Any ideas?
What does the log shows?
http://host:port/mdt/MSArch -> select default delete job -> log
And are you just looking at the message count in pimon to confirm that delete job has no effect or you tried opening the message to validate it?