> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Delete downloaded video artifacts after confirmed upload to OK while preserving retry files for failed uploads.
**Architecture:** Add a focused cleanup helper to `app/worker.py` that validates the target directory is beneath the configured VK storage root, removes that directory, and clears persisted local paths. Invoke it only after `ok_video_id` has been assigned. Cleanup errors are logged without changing the successful upload status.
After assigning `video.ok_video_id` and setting `video.status = "ok_uploaded"`, call the helper inside a `try/except OSError` block. Log failures and retain the successful upload status.
Inside the API container, query `Video` rows where `ok_video_id IS NOT NULL` and either local path is set. Apply `cleanup_uploaded_video_artifacts` and commit each successful cleanup.