Scalr\Service\Aws\Rds\V20141031\RdsApi::deleteDBSecurityGroup PHP Method

deleteDBSecurityGroup() public method

Deletes a DB Security Group. Note! The specified DB Security Group must not be associated with any DB Instances.
public deleteDBSecurityGroup ( string $dBSecurityGroupName ) : boolean
$dBSecurityGroupName string The Name of the DB security group to delete.
return boolean Returns true on success or throws an exception.
    public function deleteDBSecurityGroup($dBSecurityGroupName)
    {
        $result = false;
        $options = array('DBSecurityGroupName' => (string) $dBSecurityGroupName);
        $response = $this->client->call(ucfirst(__FUNCTION__), $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            $result = true;
            if ($this->rds->getEntityManagerEnabled() && null !== ($item = $this->rds->dbSecurityGroup->get($options['DBSecurityGroupName']))) {
                $this->getEntityManager()->detach($item);
            }
        }
        return $result;
    }
RdsApi