ContentService.Delete Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

Delete(int, bool) Permanently deletes an Content item and its descendants from the repository.
Delete(int, long, bool) Permanently deletes the specified Content version from the version history.

Delete(int, bool)

Permanently deletes an Content item and its descendants from the repository.

This will delete the object and can cause a cascading effect where multiple objects will be deleted.

public static Content Delete(int id, bool auth = true)

Parameters

id
int

Id of the Content item to delete.

auth
bool

Returns

Content

The deleted Content.

Delete(int, long, bool)

Permanently deletes the specified Content version from the version history.

public static Content Delete(int id, long version, bool auth = true)

Parameters

id
int

Id of the Content item.

version
long

Timestamp of the version to delete.

auth
bool

Returns