def deleteRenderLayers():
    '\n\tDelete all render layers\n\t'
    renderLayers = mc.ls(type='renderLayer')
    renderLayers.remove('defaultRenderLayer')
    if renderLayers:
        mc.delete(renderLayers)
    return renderLayers
Delete all render layers
def deleteRenderLayers():
    '\n\t\n\t'
    renderLayers = mc.ls(type='renderLayer')
    renderLayers.remove('defaultRenderLayer')
    if renderLayers:
        mc.delete(renderLayers)
    return renderLayers