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 sudo = false)
Parameters
- id
- int
Id of the Content item to delete.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Delete(int, long, bool)
Permanently deletes the specified Content version from the version history.
public static Content Delete(int id, long version, bool sudo = false)
Parameters
- id
- int
Id of the Content item.
- version
- long
Timestamp of the version to delete.
- sudo
- bool
true
to perform action as super user, otherwise false
.