public function purgeAllAliases()
    {
        $aliasList = $this->aliasList( false );
        ezpEvent::getInstance()->notify( 'image/purgeAliases', array( $aliasList['original']['url'] ) );
        unset( $aliasList['original'] ); // keeping original

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

            // remove entry from DOM model
            $doc = $this->ContentObjectAttributeData['DataTypeCustom']['dom_tree'];
            $domXPath = new DOMXPath( $doc );
            foreach ( $domXPath->query( "//alias[@name='{$alias['name']}']") as $aliasNode )
            {
                $aliasNode->parentNode->removeChild( $aliasNode );
            }
        }

        if ( isset( $doc ) )
            $this->storeDOMTree( $doc, true, false );
    }