'Remove an image from the subreddit\'s custom image set.
The image will no longer count against the subreddit\'s image limit.
However, the actual image data may still be accessible for an
unspecified amount of time. If the image is currently referenced by the
subreddit\'s stylesheet, that stylesheet will no longer validate and
won\'t be editable until the image reference is removed.
See also: [/api/upload_sr_img](#POST_api_upload_sr_img).'

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

    if g.css_killswitch:
        return abort(403, 'forbidden')
    if form.has_errors('img_name', errors.BAD_CSS_NAME):
        return
    VNotInTimeout().run(action_name='editsettings', details_text='del_image', target=c.site)
    wiki.ImagesByWikiPage.delete_image(c.site, 'config/stylesheet', name)
    ModAction.create(c.site, c.user, action='editsettings', details='del_image', description=name)
