def delete_file(instance, filefield_name):
    file_instance = getattr(instance, filefield_name)
    if file_instance:
        DatabaseFileStorage().delete(file_instance.name)
Delete the file (if any) from the database.
dataset/ETHPy150Open victor-o-silva/db_file_storage/db_file_storage/model_utils.py/delete_file