diff --git a/acquia_purge.drush.inc b/acquia_purge.drush.inc
index 0118101..6687a1c 100644
--- a/acquia_purge.drush.inc
+++ b/acquia_purge.drush.inc
@@ -52,6 +52,19 @@ function acquia_purge_drush_command() {
       'examples' => array('drush app "news"'),
     ),
 
+    // Define the ap-purge-wildcard command.
+    'ap-purge-wildcard' => array(
+      'description' => 'Purge varnish cache for all URLs starting with given string',
+      'aliases' => array('appw'),
+      'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
+      'options' => array(
+        'path' => 'Starting string for the path to clear cache for',
+      ),
+      'examples' => array(
+        'appw --path="pages/' => 'Purge varnish cache for all path aliases that start with "pages/".',
+      ),
+    );
+
     // Define the 'ap-forget' command.
     'ap-forget' => array(
       'description' => 'Forget all scheduled purges and empty the queue.',
@@ -235,6 +248,46 @@ function drush_acquia_purge_ap_purge($paths = NULL) {
 }
 
 /**
+ * Implements drush_COMMANDFILE_COMMANDNAME().
+ */
+function drush_acquia_purge_ap_purge_wildcard() {
+  // Stop invocation if we are not detecting Acquia Cloud heuristics.
+  if (!_acquia_purge_are_we_on_acquiacloud()) {
+    return drush_set_error(dt('You must be on Acquia Cloud to use Acquia Purge.'));
+  }
+
+  // Stop invocation if serious error conditions have been found.
+  if (!_acquia_purge_are_we_allowed_to_purge()) {
+    return drush_acquia_purge_ap_diagnosis(ACQUIA_PURGE_SEVLEVEL_ERROR);
+  }
+
+  $wildcard = trim(drush_get_option('path'));
+
+  if (empty($wildcard)) {
+    return drush_set_error(dt('Path to check for matching aliases is required.'));
+  }
+
+  $query = db_select('url_alias', 'ua');
+  $query->condition('alias', $wildcard . '%', 'LIKE');
+  $query->addField('ua', 'alias');
+  $paths = $query->execute()->fetchCol();
+
+  if (empty($paths)) {
+    return drush_set_error(dt('No alias found for the given path string.'));
+  }
+
+  // Improve the administrative experience by automatically adding variations
+  // on the given paths, which includes trailing slash versions and pagination.
+  if (_acquia_purge_variable('acquia_purge_variations')) {
+    _acquia_purge_input_path_variations($paths);
+  }
+
+  // Add all paths and dispatch processing to ap-process.
+  _acquia_purge_service()->addPaths($paths);
+  drush_acquia_purge_ap_process();
+}
+
+/**
  * Forget all scheduled purges and empty the queue.
  */
 function drush_acquia_purge_ap_forget() {
