What's the difference between --delete-local-data and --delete-emptydir-data option in oc adm drain command?

Solution Verified - Updated -

Issue

  • oc adm drain NODE --delete-local-data=true returns the following message.

    Flag --delete-local-data has been deprecated, This option is deprecated and will be deleted. Use --delete-emptydir-data.
    
  • Is there any difference between --delete-local-data and --delete-emptydir-data option?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • >=4.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content