> ## Documentation Index
> Fetch the complete documentation index at: https://nayax-44d6e37b-docs-marshall-faq-redistribution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Machine Tasks

> Deletes scheduled tasks for machines based on the provided query parameters such as SchedulingIds, MachineID, and date.



## OpenAPI

````yaml /openapi/lynx.yaml delete /v1/Scheduling/schedule/machine-tasks
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/Scheduling/schedule/machine-tasks:
    delete:
      tags:
        - Scheduling
      summary: Delete Machine Tasks
      description: >-
        Deletes scheduled tasks for machines based on the provided query
        parameters such as SchedulingIds, MachineID, and date.
      operationId: delete-machine-tasks
      parameters:
        - name: SchedulingIds
          in: query
          description: >-
            A list of unique identifiers for the specific scheduling instances
            to be deleted.
          schema:
            type: array
            items:
              type: integer
              format: int64
        - name: MachineID
          in: query
          description: >-
            The unique identifier of the machine for which the tasks are to be
            deleted.
          schema:
            type: integer
            format: int64
        - name: isStatic
          in: query
          description: A flag indicating if the tasks are static.
          schema:
            type: boolean
        - name: date
          in: query
          description: The date for which the tasks are to be deleted.
          schema:
            type: string
      responses:
        '200':
          description: The details of the deleted tasks.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ScheduleTaskDto'
components:
  schemas:
    ScheduleTaskDto:
      type: object
      properties:
        MachineId:
          type: integer
          format: int64
          description: The unique identifier of the machine associated with the task.
        TaskLutId:
          type: string
          nullable: true
          description: The identifier for the type of task from the lookup table.
        SchedulingId:
          type: integer
          format: int64
          description: The unique identifier of the scheduling instance.
        DriverId:
          type: string
          format: uuid
          nullable: true
          description: The unique identifier of the driver assigned to the task.
        DriverName:
          type: string
          nullable: true
          description: The name of the driver assigned to the task.
        TimezoneOffset:
          type: number
          format: double
          description: The timezone offset in hours for the scheduled task.
        ScheduleDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the task is scheduled.
        StatusId:
          type: integer
          format: int32
          description: The status identifier of the task.
        Notes:
          type: string
          nullable: true
          description: Additional notes related to the task.
        GeneratePickList:
          type: boolean
          description: Indicates whether a pick list should be generated for the task.
        GeneratePickListTime:
          type: string
          nullable: true
          description: The time when the pick list is generated.
        GeneratePickListRange:
          type: integer
          format: int32
          nullable: true
          description: The range in minutes for generating the pick list.
        ScheduleNextWorkingDay:
          type: boolean
          description: >-
            Indicates whether the task should be scheduled for the next working
            day.
        AssignedToPatternId:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the pattern to which the task is assigned.
        AssignedToScheduleId:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the schedule to which the task is assigned.
        IncompletionReason:
          type: string
          nullable: true
          description: The reason for task incompletion, if applicable.
        IncompletionReasonImages:
          type: array
          items:
            $ref: '#/components/schemas/EntityPicture'
          nullable: true
          description: A list of images associated with the reason for task incompletion.
        Pattern:
          $ref: '#/components/schemas/Pattern'
          description: The pattern details associated with the task, if any.
        IsClustered:
          type: boolean
          nullable: true
          description: Indicates whether the task is part of a clustered set of tasks.
        ClusterIds:
          type: string
          nullable: true
          description: The identifiers of the clustered tasks, if applicable.
        CreatedBy:
          type: integer
          format: int64
          description: The unique identifier of the user who created the task.
        CreatedDt:
          type: string
          format: date-time
          description: The date and time when the task was created.
        UpdatedBy:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the user who last updated the task.
        UpdatedDt:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the task was last updated.
        isMobile:
          type: boolean
          nullable: true
          description: >-
            Indicates whether the task was created or updated via a mobile
            device.
        isSeriesUpdate:
          type: boolean
          nullable: true
          description: Indicates whether the task is part of a series update.
        originalDate:
          type: string
          nullable: true
          description: >-
            The original date of the task before any rescheduling, if
            applicable.
        IncompletionReasonId:
          type: integer
          format: int32
          nullable: true
          description: The unique identifier of the reason for task incompletion.
        IncompletionReasonName:
          type: string
          nullable: true
          description: The name of the reason for task incompletion.
      additionalProperties: false
    EntityPicture:
      type: object
      properties:
        EntityPictureId:
          type: integer
          format: int32
          description: The unique identifier of the entity picture.
        EntityPictureUrl:
          type: string
          nullable: true
          description: The URL of the entity picture.
      additionalProperties: false
    Pattern:
      type: object
      properties:
        PatternId:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the pattern.
        Name:
          type: string
          nullable: true
          description: The name of the pattern.
        Description:
          type: string
          nullable: true
          description: The description of the pattern.
        RepeatType:
          type: integer
          format: int32
          nullable: true
          description: The type of repetition for the pattern (e.g., daily, weekly).
        RepeatInterval:
          type: integer
          format: int32
          description: The interval of repetition for the pattern.
        IsStatic:
          type: boolean
          description: Indicates whether the pattern is static.
        StartOn:
          type: string
          format: date-time
          nullable: true
          description: The start date and time of the pattern.
        EndOn:
          type: string
          format: date-time
          nullable: true
          description: The end date and time of the pattern.
        EndAfter:
          type: integer
          format: int32
          nullable: true
          description: The number of occurrences after which the pattern ends.
        RepeatOn:
          type: array
          items:
            $ref: '#/components/schemas/RepeatOn'
          nullable: true
          description: The days and weeks on which the pattern repeats.
      additionalProperties: false
    RepeatOn:
      type: object
      properties:
        Tasks:
          type: string
          nullable: true
          description: The tasks associated with the repetition pattern.
        Days:
          type: string
          nullable: true
          description: The days of the week on which the tasks repeat.
        Week:
          type: string
          nullable: true
          description: The week of the month on which the tasks repeat.
        MonthDay:
          type: string
          nullable: true
          description: The day of the month on which the tasks repeat.
        SetPos:
          type: string
          nullable: true
          description: >-
            The position within the month (e.g., first, second) for the tasks to
            repeat.
        RecurrenceEx:
          type: string
          nullable: true
          description: Any exceptions to the recurrence pattern.
        WeekNumber:
          type: string
          nullable: true
          description: The week number within the recurrence period.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````