From f3d0ab45dc7b392007e5f7584632574c13222f37 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 14 Jul 2026 00:01:25 +0200 Subject: [PATCH] force delete file --- .../commands/teleforma-delete-year-private-documents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/teleforma/management/commands/teleforma-delete-year-private-documents.py b/teleforma/management/commands/teleforma-delete-year-private-documents.py index 8bea5fed..defd373b 100644 --- a/teleforma/management/commands/teleforma-delete-year-private-documents.py +++ b/teleforma/management/commands/teleforma-delete-year-private-documents.py @@ -21,5 +21,6 @@ class Command(BaseCommand): date = datetime.datetime(day=31, month=12, year=year) docs = DocumentPrivate.objects.filter(date_added__lte=date) for doc in docs: + doc.file.delete(save=False) doc.delete() \ No newline at end of file -- 2.47.3