qdel(1B)

πŸ“¦ version 6.1.3, in epel 9

πŸ’… qdel(1B) β€” delete pbs batch job ✨

okay so you're in the qdel(1B) club now, bestie β€” this is the PBS page, and it's literally your delete button for batch jobs. welcome 🫢

qdel [-a] [-c] [-m message] [-p] [-t array_range] [-W delay] [-b secs]
job_identifier...

🌸 NAME 🌸

qdel β€” delete pbs batch job. that's it, that's the whole vibe. poof, gone πŸ’¨


✨ SYNOPSIS ✨

qdel [-a] [-c] [-m message] [-p] [-t array_range] [-W delay] [-b secs]
job_identifier...

πŸ’– DESCRIPTION πŸ’–

so the way qdel works: it deletes jobs in the order you hand it their job identifiers. no shuffling, no reordering β€” first come, first deleted, periodt. a job gets deleted by sending a Delete Job batch request to the batch server that owns the job. and once a job has been deleted? it is no longer subject to management by batch services. like it's moved out, changed its number, blocked you. πŸ’€

so who's allowed to delete a batch job? your options are: its owner, the batch operator, or the batch administrator. that's the guest list, no plus-ones πŸ™ˆ

and here's the part you actually need to know: when a server deletes a batch job, the job gets sent a SIGTERM signal, followed by a SIGKILL signal. the time delay between those two signals is an attribute of the execution queue the job was run from β€” and yeah, the administrator can set that. but you can override that delay with the -W option. main character move honestly πŸ‘‘

if you want the deep lore, see the PBS ERS section 3.1.3.3, "Delete Job Request". iykyk πŸ“–


πŸŽ€ OPTIONS πŸŽ€

  • -W delay β€” sets the delay between sending the SIGTERM and the SIGKILL signals. delay is an unsigned integer number of seconds. no negatives, bestie, it's unsigned for a reason ⏱️
  • -a β€” delete the job(s) asynchronously. and for a Running job that means the reply comes back before the MOM is even asked to delete the job. lowkey impatient, we respect it πŸƒβ€β™€οΈ
  • -b seconds β€” how many seconds max qsub will block while trying to contact pbs_server. and okay yes the page says qsub, that's not a typo on my end, that's literally what the original says πŸ™ˆ so: if pbs_server is down, or for a variety of communication failures, qsub will continually retry connecting to pbs_server for job submission. this value overrides the CLIENTRETRY parameter in torque.cfg. heads up: this is a non-portable TORQUE extension β€” portability-minded users can use the PBS_CLIENTRETRY environmental variable instead. a negative value gets interpreted as infinity. and the default is 0. 🫢
  • -c β€” clean up unreported jobs from the server. ⚠️ this should only be used if the scheduler is unable to purge unreported jobs. and ngl, it's gatekept: this option is only available to a batch operator or the batch administrator πŸ”
  • -p β€” forcibly purge the job from the server. ⚠️ again, this should only be used if a running job won't exit because its allocated nodes are unreachable. the admin should make every attempt at resolving the problem on the nodes first, fr fr. and important: if a job's mother superior recovers after purging the job, any epilogue scripts may still run. πŸ‘€ this option is only available to a batch operator or the batch administrator too πŸ”
  • -m message β€” specify a comment to be included in the email. message is the comment you send. and yep, gatekept again: this option is only available to a batch operator or the batch administrator βœ‰οΈ
  • -t array_range β€” array_range is an integer id or a range of integers. you can combine multiple ids or id ranges in a comma delimted list β€” examples: -t 1-100 or -t 1,10,50-100. the command acts on the array (or the specified range of the array) just as it would on an individual job. slay 🌈

πŸ¦‹ OPERANDS πŸ¦‹

qdel accepts one or more job_identifier operands of the form:

sequence_number[.server_name][@server]
  or
'all'

yes, 'all' is a real operand and yes it's quoted in the original, so keep those quotes, bestie πŸ’…


⭐ STANDARD ERROR ⭐

qdel will write a diagnostic messages to standard error for each error occurrence. (that grammar is the original's, not mine β€” i'm just the messenger 😭)


🌈 EXIT STATUS 🌈

  • upon successful processing of all the operands presented to the qdel command, the exit status will be a value of zero. we love a clean 0 πŸŽ‰
  • if qdel fails to process any operand, the command exits with a value greater than zero. not the vibe, but at least it tells you πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

qsub(1B), qsig(1B), and pbs_deljob(3B) β€” go read those next, bestie, they're all in the friend group 🫢


okay that's the whole page!! mwah πŸ’‹ this one's from Local, and it's the qdel(1B) page β€” go forth and delete responsibly, icon πŸŽ€βœ¨πŸ”₯

πŸ“¦ where this page comes from
  • epel 9: torque-client 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms