Skip to main content

discard

Function discard 

Source
pub async fn discard(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
) -> AppResult<ImportOptions>
Expand description

Discards a staged upload; returns its options (to go back to the target). A table goes at once. A STEP file is only marked expired: its row is unusable from now on, and purge_stale removes it together with its blob once the blob is past the grace period of the vault clean-up.