renamed clearqueue to purgequeue