Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to delete project or sheet #405

Open
talhaozdemir opened this issue Feb 28, 2023 · 2 comments
Open

Not able to delete project or sheet #405

talhaozdemir opened this issue Feb 28, 2023 · 2 comments
Labels
in progress An issue that is currently being worked on

Comments

@talhaozdemir
Copy link

It would be good if we can delete project like

core.detachProject("Project");

and for sheet;

  const project = core.getProject("Project");
  project.detachSheet("Sheet");
@AriaMinaei AriaMinaei added the in progress An issue that is currently being worked on label Oct 9, 2023
@GhostCatcg
Copy link

Yes, this feature is needed

@jo-chemla
Copy link

Experimental API for forgetting objects/sheets has been implemented a few months back, see #393
@AriaMinaei any reason why this is not yet out of experimental? +A mention in the docs would be great for newcomers!

studio.transaction((api) => {
  // calling this will make it as if you never set values for this object or put it in a sequence
  api.__experimental_forgetObject(object)
  
  // calling this will make it as if you never set values for _any_ object in this sheet, and you never created a sequence either.
  api.__experimental_forgetSheet(sheet)

  // note that if you're calling __experimental_forgetSheet(), then there is no need to call __experimental_forgetObject() in case that object belongs in that sheet.
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress An issue that is currently being worked on
Projects
None yet
Development

No branches or pull requests

4 participants