async function doDelete({ subargs }) {
  if (!checkNumArgs(subargs, 2, 'delete <activityId>')) {
    return;
  }

  const success = await deleteActivity(subargs[1]);

  if (!success) {
    console.warn(`Failed to delete QueueActivity ${subargs[1]}, see error logs`);
  } else {
    console.log(`Success: delete QueueActivity ${subargs[1]}`);
  }
}
/**
 * Delete activity from ingestion queue
 *
 * @param {Integer} args.subargs[1] Activity ID
 */
Delete activity from ingestion queue
@param {Integer} args.subargs[1] Activity ID
Delete activity from ingestion queue @param { Integer } args . subargs [ 1 ] Activity ID
async function doDelete({ subargs }) {
  if (!checkNumArgs(subargs, 2, 'delete <activityId>')) {
    return;
  }
  const success = await deleteActivity(subargs[1]);
  if (!success) {
    console.warn(`Failed to delete QueueActivity ${subargs[1]}, see error logs`);
  } else {
    console.log(`Success: delete QueueActivity ${subargs[1]}`);
  }
}
async function doDelete ( { subargs } ) { if ( ! checkNumArgs ( subargs , 2 , 'delete <activityId>' ) ) { return ; } const success = await deleteActivity ( subargs [ 1 ] ) ; if ( ! success ) { console . warn ( ` ${ subargs [ 1 ] } ` ) ; } else { console . log ( ` ${ subargs [ 1 ] } ` ) ; } }
Delete activity from ingestion queue
 @param {Integer} args.subargs[1] Activity ID
Delete activity from ingestion queue @param { Integer } args . subargs [ 1 ] Activity ID