redactEvent

abstract fun redactEvent(    event: Event,     reason: String?,     withRelTypes: List<String>? = null,     additionalContent: Content? = null): Cancelable

Redact (delete) the given event.

Parameters

event

the event to redact

reason

optional reason string

withRelTypes

the list of relation types to redact with this event

additionalContent

additional content to put in the event content