'Remove the subreddit\'s custom header image.
The sitewide-default header image will be shown again after this call.
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_header(self, form, jquery):

    if g.css_killswitch:
        return abort(403, 'forbidden')
    if c.site.header:
        c.site.header = None
        c.site.header_size = None
        c.site._commit()
        ModAction.create(c.site, c.user, action='editsettings', details='del_header')
    form.find('.delete-img').hide()
    form.find('.img-preview-container').hide()
    form.set_text('.img-status', _('deleted'))
