@param glob the file glob to remove @return 0 on success, -1 on error (pm_errno is set accordingly)