Skip to main content

delete_actor_document_tx

Function delete_actor_document_tx 

Source
pub fn delete_actor_document_tx(
    conn: &mut Connection,
    document_id: &str,
) -> Result<usize>
Expand description

#actorprune: hard-delete a dead actor record and its history/lease rows.

close_stale_starting_actors only TRANSITIONS Starting actors to Closed; nothing removes long-dead Closed rows, so the documents projection (and admin list) grows without bound. This removes the documents row plus its actor_transitions history and supervisor_leases rows for one document_id in a single transaction. Returns the number of documents rows removed (0 or 1).