:relfileprefix: ../../../
[#boost-urls-url_base-remove_origin]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url_base.adoc[pass:[url_base]]::remove_origin


Remove the origin component


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L2553[boost/url/url_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/url_base.adoc[url_base]&
remove_origin();
----

=== Description


This function removes the origin, which
consists of the scheme and authority.
[,cpp]
----
assert( url( "http://www.example.com/index.htm" ).remove_origin().buffer() == "/index.htm" );
----
[,cpp]
----
this->scheme_id() == scheme::none && this->has_authority() == false
----

=== Linear in `this-&gt;size()`.

=== Throws nothing.








