google spreadsheet script editor: delete a project - google-apps-script

I have two script projects for a spreadsheet. One was a temp one for development testing. I want to delete the temp one. When I click on script editor it shows both projects, and I can select one, but there is no option for deleting.
Also when I open the project itself there is no delete option.
I have seen other SO threads (such as this), but it seems the interface is changed since then.
Attached the screenshots.
Script Editor File menu:

Make sure that you are the owner of the script.
I've tried to replicate your issue in other scripts which I don't own and it seems that I cannot see a Delete Project... option under File menu.
But with my owned script, there is a Delete Project... option. See screenshot.
Here's a reference post: How can I remove a project from a Google Spreadsheet?
UPDATE (based from OP's comment):
You must be the owner of the spreadsheet to show the Delete Project... option.

Related

How can I delete a project execution into Google script

I don't find any option or button for deleting one or more execution of a Google Script. It is possible ?
I want to purge all my developpemet exécution.
You may refer with this thread. Make sure that you are the owner of the spreadsheet to show the Delete Project... option under File menu..

Google script trigger 'from Spreadsheet' not available

I've successfully created picklists from a Google sheet into a Google form following a tutorial (http://wafflebytes.blogspot.com/2016/10/google-script-create-drop-down-list.html) and Google's documentation, however I do not have the option to set a trigger on the Event 'From spreadsheet', as laid out in the the tutorials/documentation, so I must be missing a step and haven't been able to figure out what it is.
The result is that the options are not automatically updating and must be manually pushed. I would like to enable the options to be refreshed on open.
I do not have the option to updateForm + from spreadsheet, as pictured in those resources.
From tutorial
My options
What step am I missing? Or is this possibly a permissions issue (I am not owner of the documents, but I tried to reproduce this in docs I own and ran into the same issue)?
NOTE: I have not posted my script here because it's nearly identical to the one linked to in the tutorial.
Update:
I'm beginning more and more to think it has to do with our OAuth configurations or permissions. I even updated the manifest to explicitly authorize forms and sheets, but I'm still not offered sharing permissions. I will have our admin check in on this but if anybody has had experience in these matters, I'm all ears.
Since your options shows "From form", you are working on a project bounded to a form instead of the one that you created from your spreadsheet which is the one bounded to spreadsheet.
Rather than missing a tutorial step it could be that you had several script projects open at the same time and you are looking at the wrong one.
Reference
Event Objects

Delete a google-apps script

I've created a spreadsheet, and over the years I've been editing/adding scripts to this spreadsheet to extend functionality. While doing this, I inadvertently created some extra projects. Now when I click Tools -> Script Editor, it comes up with the following:
How do I delete "Copy of Character Data", and "Untitled project"? I'd like to keep the google spreadsheet around (As I'd like to keep its revision history).
I've tried following this post, but to no avail. Going to "script.google.com" simply loaded my last script, and didn't give me some type of dashboard where I could remove individual scripts. I see no delete option anywhere, and there is no scripts that I could find in "drive.google.com".
Choose the project you want to delete and when you are in you have the option to delete it (as long as you are the owner of the project).
If you don't see the option Delete project, that means those projects weren't created with the account you're logged in. Log in with that account or ask the person who created them to delete those projects.

How can I remove a project from a Google Spreadsheet?

I made a copy of a Google Apps Script project by mistake by choosing File > Make a copy... on Script Editor and since then every time I click Tools > Script Editor... on the Spreadsheet screen the project belongs to, I see a screen showing the two projects (original one and copied one) and I need to choose one to open the script editor. To be worse, the original script became unexecutable since I made the copy, I don't know if this is the cause of that though.
So, I'd like to remove the copy project from the Spreadsheet. How can I do that? I can't find any menu to remove project.
Thanks,
Open the "copy of" version of the script, click File -> Delete Project... This will generate a confirmation box. Click the Delete button to confirm that you would like to delete the project. This should leave your original as the only associated script.

How to prevent Apps Script from opening multiple projects?

I have an html dialog for Sheets (container bound dialog) that is used for input and saving of customer data. I made a copy of it for use in a different office, so now I have Worksheet#1 with Script project "Scripts" and Copy of Worksheet#1 with Script project "Copy of Scripts". We've made changes to Scripts so it is no longer the same as Copy of Scripts.
Sometimes Worksheet#1 triggers scripts that are in Copy of Scripts. Not sure why. On these occasions I can open up script editor and it asks which project to open (Scripts or Copy or Scripts) and once I select the right one it behaves properly until the next time this happens.
How can I insure that it always opens the correct project?
You will see this behavior sometimes if you have multiple projects within a script.
Check whether you have multiple projects in one of those sheets.
File > Open...
Here's a spreadsheet-contained script with two projects in it:
Open the project you want to delete.
Delete it.
File > Delete Project...