---
title: "Discussion on \"Using Signal in Django to Delete Old Image\" | Hashnode"
description: "Discussion on \"Using Signal in Django to Delete Old Image\". Using signal to delete old profile picture when sending update request."
url: "https://hashnode.com/posts/using-signal-in-django-to-delete-old-image/629b75095c349e3289ef14ff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Signal in Django to Delete Old Image](https://sammycodespy.hashnode.dev/using-signal-in-django-to-delete-old-image?utm_source=hashnode&utm_medium=feed)

Using signal to delete old profile picture when sending update request.

Jun 4, 2022 · 4 min read · sammycodespy.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#django](https://hashnode.com/tag/django)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Samer Mahamid](https://hashnode.com/@sammy-codes-py)

@sammy-codes-py · Germany

  
[View profile](https://hashnode.com/@sammy-codes-py)

I'm Python Web Developer. Every day I,m soaking up as much knowledge and practice

Python Web Developer. Every day, I’m soaking up as much knowledge and practice as I can, in an attempt to perfect my knowledge. My specialty is Python/Django and I also know HTML, CSS, JavaScript, and relational databases (SQL). Currently, I’m concentrating on perfecting my knowledge of API's

## Responses 1

Markdown supported · ⌘↵ to post

[Dmytro Litvinov](https://hashnode.com/@DmytroLitvinov)

[Jun 4, 2022](https://hashnode.com/posts/using-signal-in-django-to-delete-old-image/629b75095c349e3289ef14ff/comment/629b78337ab2e32eed5b95f0)

Hi there,

Found out that article in Hashnode weekly newsletter :)

Btw, there is a package called [django-cleanup](https://pypi.org/project/django-cleanup/) which automatically deletes files for FileField, ImageField and subclasses.

[Samer Mahamid](https://hashnode.com/@sammy-codes-py)

[Jun 4, 2022](https://hashnode.com/posts/using-signal-in-django-to-delete-old-image/629b75095c349e3289ef14ff/comment/629b78337ab2e32eed5b95f0#reply-629b7b225c349e3289ef1601)

Yes, ofcourse. I'm just showing how can be used signals in django. Thanks for the comment, you are right it is not best example.
