drush variable-deletefor drush 7x


Delete a variable.

drush variable-delete

  • Aliases


    variable-delete has 1 alias/es:


    drush vdel

  • Arguments


    variable-delete accepts 1 argument/s:


    name : The name of a variable or the first few letters of its name.

  • Options


    variable-delete accepts 2 option/s:


    --yes : Skip confirmation if only one variable name matches.

    --exact : Only delete the one variable that exactly matches the specified name.

  • Examples


    Delete the user_pictures variable.

    drush vdel user_pictures

    Choose from a list of variables beginning with "u" to delete.

    drush vdel u

    Bring the site back online, skipping confirmation. Variable is rewritten to site_offline for Drupal 6.

    drush vdel -y --exact maintenance_mode

  • Comments


    comments powered by Disqus