def forms_delete_entry(entry):
    if not isinstance(entry, FormsFormEntry):
        entry = FormsFormEntry.objects.get(pk=entry)
    form = entry.form
    fs = FileSystemStorage(location=get_upload_forms_attachments())
    path = join(fs.location, str(form.pk), str(entry.pk))
    if os.path.isdir(path):
        import shutil
        shutil.rmtree(path)
    ct = ContentType.objects.get_for_model(FormsFormEntry)
    detete_message_community_extra(entry, ct)
    FormsFieldEntry.objects.filter(field__reference__startswith='%s.' %
                                   form.slug, value=entry.pk % '%s').update(value='')
    entry.delete()
dataset/ETHPy150Open zorna/zorna/zorna/forms/api.py/forms_delete_entry/swapped operands of `%`