Feat: In-App Video Deletion with Disk/Database Options and Library Exclusion
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python, react, typescript
- Domain
- backend, database, frontend, full-stack
Research direction
Read the image deletion workflow in backend/app/routes/images.py and compare it with backend/app/database/videos.py, backend/app/routes/videos.py, and backend/app/utils/videos.py. Then trace the viewer controls and overlay in frontend/src/components/VideoPlayer/VideoViewerControls.tsx and VideoPlayerOverlay.tsx. Done means video deletion supports both disk deletion and database-only removal, and excluded files stay out of later scans.
Written by the indexing model from the issue text.
Description
Describe the feature
Problem Statement
Currently, there is no way to delete or remove video files from within PictoPy:
- Frontend Viewer: In the full-screen video player (
frontend/src/components/VideoPlayer/VideoViewerControls.tsx), only Info, Open Folder, and Favorite buttons exist. There is no Delete button or confirmation dialog. Users have to manually locate the video in their OS file explorer to delete it. - Missing Database & API Layer: Unlike images (which received full deletion support via PR #1547 and
backend/app/routes/images.py),backend/app/routes/videos.pyhas noDELETEendpoint, andbackend/app/database/videos.pylacks deletion methods (db_delete_videos_by_ids). - Scan Re-Import Loop: The database does not maintain an
excluded_video_pathstable. Without this, if a user removes a video from the gallery without deleting the physical file, the next background folder scan will immediately re-index and re-import it.
Proposed Solution
Implement complete video deletion parity with the image deletion workflow across the full stack:
- Database Layer (
backend/app/database/videos.py):- Create the
excluded_video_paths (path VARCHAR PRIMARY KEY, folder_id INTEGER)table. - Implement
db_get_excluded_video_paths(),db_delete_videos_by_ids(), anddb_exclude_and_delete_videos(). - Add exclusion checks during video scanning so excluded paths are not re-imported.
- Create the
- Backend API (
backend/app/routes/videos.py&backend/app/utils/videos.py):- Implement
video_util_delete_videos(video_ids, delete_from_device). - Expose a
DELETE /videos/delete-videosendpoint accepting video IDs and adelete_from_deviceboolean flag.
- Implement
- Frontend Integration (
frontend/src/):- Add
deleteVideosinfrontend/src/api/api-functions/videos.tsand createuseDeleteVideos.tsmutation hook. - Add a Delete (
Trash2) icon toVideoViewerControls.tsx. - Trigger the delete confirmation dialog in
VideoPlayerOverlay.tsx, offering the choice to delete from disk or remove from PictoPy database only.
- Add
Expected Impact
- Complete parity between image and video viewing workflows.
- Users gain full control over managing and removing videos directly from the interface.
- Prevents deleted videos from reappearing on subsequent library scans.
Add ScreenShots
The delete button does not exist in the code yet.
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue
- Dominant language
- Python
- Stars
- 322
- Forks
- 793
- Avg merge
- 6d 10h
- Merged PRs (30d)
- 20
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/PictoPy
-
bug enhancement
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AOSSIE-Org/PictoPy#1802 · 2 comments ·
Maintainers usually reply within 3 days
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesPossibly taken @swastiksharma45 claimed this 2 days ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/PictoPy#1788 · 6 comments ·
Maintainers usually reply within 3 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
AOSSIE-Org/PictoPy#1786 · 1 comment ·
Maintainers usually reply within 3 days
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Possibly taken @omkar-suryavanshi claimed this 3 days ago. Openbug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/PictoPy#1780 · 5 comments ·
Maintainers usually reply within 3 days
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workPossibly taken @ManyaJain111 claimed this 2 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
AOSSIE-Org/PictoPy#1779 · 2 comments · 1 assignee ·
Maintainers usually reply within 3 days
All issues in AOSSIE-Org/PictoPy
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Possibly taken @cestercian claimed this today. Opencomp/cli P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NousResearch/hermes-agent#162259 · 1 comment ·
Maintainers usually reply within 1 day
-
upstream update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
conan-io/conan-center-index#31597 ·
Maintainers usually reply within 1 day
-
community-request
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA-NeMo/Run#727 ·
Maintainers usually reply within 1 day
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
pytorch/pytorch#207247 · 1 comment ·
Maintainers usually reply within 1 day