function removeAliases()
    {
        $aliasList = $this->aliasList();
        foreach ( $aliasList as $alias )
        {
            if ( $alias['is_valid'] )
                $this->removeAliasFile( $alias['url'] );
        }

        if ( !empty( $aliasList['original']['url'] ) )
        {
            ezpEvent::getInstance()->notify( 'image/removeAliases', array( $aliasList['original']['url'] ) );
        }

        $this->generateXMLData();
    }