1. Older than X days
find . -name "*xml" -mtime +2 -exec rm {} \;
2. Remove all files with .xml extension if the following error is present when try to delete multiple files:
ksh: /usr/bin/rm: 0403-027 The parameter list is too long.
find . -name "*.xml" -exec rm {} \;