Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface RetentionPolicy

    The retention policy configured for the app. For more information about retention policies, see Retention Policy.

    interface RetentionPolicy {
        retention_type?:
            | "MESSAGE_EXPIRE_POLICY"
            | "CONVERSATION_EXPIRE_POLICY"
            | "PERSIST_RETENTION_POLICY";
        ttl_days?: number;
    }
    Index

    Properties

    retention_type?:
        | "MESSAGE_EXPIRE_POLICY"
        | "CONVERSATION_EXPIRE_POLICY"
        | "PERSIST_RETENTION_POLICY"
    ttl_days?: number

    Optional. The days before a message or conversation is eligible for deletion. Default value is 180. The ttl_days value has no effect when retention_type is PERSIST_RETENTION_POLICY. The valid values for this field are [1 - 3650]. Note that retention cleanup job runs once every twenty-four hours which can lead to delay i.e., messages and conversations are not deleted on the minute they become eligible for deletion.