pub async fn delete<R: Resource + ?Sized>( res: &R, ctx: &ReqCtx, id: &str, ) -> ApiResponse
Authorize, delete (soft or hard per the resource), and record the record as it last existed.