# Delete a trashed page permanently

Only a page that is already in the trash (archived) can be deleted
forever; a live page returns 409. The page goes with its trashed
sub-pages. A sub-page that is still live is kept and moved up to the
deleted page's parent (or the space root if that parent is trashed).


Canonical: https://easerix.com/docs/developers/api/notes/pages/deletePage

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="notes" operations={[{"path":"/v1/pages/{id}","method":"delete"}]} />
    </>
  );
}
