function drush_role_delete

8.0.x role.drush.inc drush_role_delete($rid)
6.x role.drush.inc drush_role_delete($rid)
7.x role.drush.inc drush_role_delete($rid)
master role.drush.inc drush_role_delete($rid)

Create the specified role

File

commands/core/role.drush.inc, line 113

Code

function drush_role_delete($rid) {
  $role = drush_role_get_class($rid);
  if ($role === FALSE) {
    return FALSE;
  }
  $result = $role->delete();
  if ($result !== FALSE) {
    drush_log(dt('Deleted "!role"', array('!role' => $rid)), 'success');
  }
  return $result;
}