code: def delete(cls, schedule_id, schedule_instance_id,
                 note_attachment_schedule_instance_id, monetary_account_id=None,
                 custom_headers=None):
          
  
          if custom_headers is None:
              custom_headers = {}
  
          api_client = client.ApiClient(cls._get_api_context())
          endpoint_url = cls._ENDPOINT_URL_DELETE.format(cls._determine_user_id(),
                                                         cls._determine_monetary_account_id(
                                                             monetary_account_id),
                                                         schedule_id,
                                                         schedule_instance_id,
                                                         note_attachment_schedule_instance_id)
          response_raw = api_client.delete(endpoint_url, custom_headers)
  
          return BunqResponseNone.cast_from_bunq_response(
              client.BunqResponse(None, response_raw.headers)
          )
docs: :type user_id: int
          :type monetary_account_id: int
          :type schedule_id: int
          :type schedule_instance_id: int
          :type note_attachment_schedule_instance_id: int
          :type custom_headers: dict[str, str]|None
  
          :rtype: BunqResponseNone