def METHOD_NAME(self, instance):
    if not instance.name:
        raise ValidationError('Applet is not null')
    path = default_storage.path('applets/{}'.format(instance.name))
    if os.path.exists(path):
        shutil.rmtree(path)
    instance.delete()