Options
All
  • Public
  • Public/Protected
  • All
Menu

Module commands/delete-all-terms

Index

Functions

  • deleteAllTerms(taxonomy?: string): void
  • Delete All Terms of a given taxonomy

    example

    Delete all categories (note that Uncategorized term is protected)

    cy.deleteAllTerms()
    
    example

    Delete all tags

    cy.deleteAllTerms('post_tag')
    

    Parameters

    • taxonomy: string = 'category'

      Taxonomy to empty

    Returns void

Generated using TypeDoc