I don't know if this is by design, or a bug, but deleting a chat does not delete the messages associated with that chat from the database.