# Delete an EMPTY space

Refused (409) while any pages exist — including trashed ones — so
content is never cascade-deleted through this endpoint. Personal
spaces can't be deleted (400).


Canonical: https://easerix.com/docs/developers/api/notes/workspaces/deleteWorkspace

{/* 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/workspaces/{id}","method":"delete"}]} />
    </>
  );
}
