'Remove the subreddit\'s custom mobile icon.
See also: [/api/upload_sr_img](#POST_api_upload_sr_img).'

@require_oauth2_scope('modconfig')
@validatedForm(VSrModerator(perms='config'), VModhash(), VNotInTimeout())
@api_doc(api_section.subreddits, uses_site=True)
def POST_delete_sr_icon(self, form, jquery):

    if c.site.icon_img:
        c.site.icon_img = None
        c.site.icon_size = None
        c.site._commit()
        ModAction.create(c.site, c.user, action='editsettings', details='del_icon')
    form.find('.delete-img').hide()
    form.find('.img-preview-container').hide()
    form.set_text('.img-status', _('deleted'))
