Skip to main content

Clear

To use PCMO, you need to create an instance of the PiopiyAction class and define the actions you want to perform. The clear() method can be used to remove all defined actions from the current session before executing any new actions.

clear()
  • No parameters. Clears all defined actions.

Example Implementation

  • Clear all defined actions before starting new ones.
const { PiopiyAction } = require("piopiy");

const action = new PiopiyAction();

action.clear();