refactored delete articles method