Click or drag to resize
RallyRestApiDelete Method (String, Int64)
Delete the object described by the specified type and object id.

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public OperationResult Delete(
	string typePath,
	long oid
)

Parameters

typePath
Type: SystemString
the type
oid
Type: SystemInt64
the object id

Return Value

Type: OperationResult
An OperationResult with information on the status of the request
Exceptions
ExceptionCondition
RallyUnavailableExceptionRally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information.
RallyFailedToDeserializeJsonThe JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally.
Examples
C#
long objectID = 12345678912L;
OperationResult deleteResult = restApi.Delete("Defect", objectID);
See Also