GenericRepositoryExtensionsDeleteItemT Method

Relativity Services API

Note: This API is now obsolete.

Deletes the specified Artifact.

Namespace:  kCura.Relativity.Client.Repositories.Extensions
Assembly:  kCura.Relativity.Client (in kCura.Relativity.Client.dll) Version: 588f15fd7550dbf54835f3417a0142d4ea37dbb5

[ObsoleteAttribute("Refer to DeleteSingle method.")]
public static T DeleteItem<T>(
	this GenericRepository<T> repo,
	int artifactID
where T : new(), Artifact


Type: kCura.Relativity.Client.RepositoriesGenericRepositoryT
The GenericRepository holding the Artifact to delete.
Type: SystemInt32
The ID of the Artifact to delete.

Type Parameters

A class inheriting from Artifact and providing a parameterless constructor.

Return Value

Type: T
The deleted Artifact.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GenericRepositoryT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also