docs: def del_calculation(job_id, confirmed=False):
      """
      Delete a calculation and all associated outputs.
      """
      if logs.dbcmd('get_job', job_id) is None:
          print('There is no job %d' % job_id)
          return
  
      if confirmed or confirm(
              'Are you sure you want to (abort and) delete this calculation and '
              'all associated outputs?\nThis action cannot be undone. (y/n): '):
          try:
              abort(job_id)
              resp = logs.dbcmd('del_calc', job_id, getpass.getuser())
          except RuntimeError as err:
              safeprint(err)
          else:
              if 'success' in resp:
                  print('Removed %d' % job_id)
              else:
                  print(resp['error'])