How to deactivate a existing active process builder using metadata API?

I was able to deactivate process builder as follows:

  1. Retrieved FlowDefinition file for the process builder that I am trying to deactivate using the command sfdx force:source:retrieve --metadata=FlowDefinition:ProcessBuilderApiNameGoesHere
  2. Updated value for tag activeVersionNumber to 0.

    <?xml version="1.0" encoding="UTF-8"?>
    <FlowDefinition xmlns="">
  3. Did the deployment using the command sfdx force:source:deploy --sourcepath=/path/to/flowDefinitionfile

and it worked(process builder was deactivated).

It would be nice if we can deactivate process builder by just changing value for status tag in actual process builder file(flow xml) itself.