A Sandcastle Documented Class Library

# JobController ClearOldJobs Method

POST /Job/ClearOldJobs/ Clears all the old jobs before a specified date.

Namespace: Dundas.BI.WebApi.Controllers
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    [HttpPostAttribute]
    [ActionNameAttribute("ClearOldJobs")]
    public IActionResult ClearOldJobs(
    	[FromBodyAttribute] GetJobsOptions options,
    	Guid? sessionId = null
    )

    <HttpPostAttribute>
    <ActionNameAttribute("ClearOldJobs")>
    Public Function ClearOldJobs (
    	<FromBodyAttribute> options As GetJobsOptions,
    	Optional sessionId As Guid? = Nothing
    ) As IActionResult

    public:
    [HttpPostAttribute]
    [ActionNameAttribute(L"ClearOldJobs")]
    IActionResult^ ClearOldJobs(
    	[FromBodyAttribute] GetJobsOptions^ options,
    	Nullable<Guid> sessionId = nullptr
    )

    [<HttpPostAttribute>]
    [<ActionNameAttribute("ClearOldJobs")>]
    member ClearOldJobs :
            [<FromBodyAttribute>] options : GetJobsOptions *
            ?sessionId : Nullable<Guid>
    (* Defaults:
            let _sessionId = defaultArg sessionId null
    *)
    -> IActionResult

#### Parameters

options
  Type: Dundas.BI.WebApi.Models
  GetJobsOptions
  A GetJobsOptions object containing the before date.
sessionId (Optional)
  Type: System
  Nullable
  Guid
  Current session ID.

#### Return Value

Type: IActionResult
A status code indicating success or an error message.
See Also

#### Reference

JobController Class
Dundas.BI.WebApi.Controllers Namespace