How can I delete a project execution into Google script - google-apps-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..

Related

Restore a Google Apps Script deleted for mistake

I have wrote a Apps Script for my Google Sheet.
I activate some triggers to schedule some functions.
I add a bad trigger and I want to delete IT, I clicked on ALL Triggers page :
https://script.google.com/home/triggers
and inadvertently I have cliked on the name of project on the list of triggers.
Then I have clicked on the trash sure to delete the trigger but It delete my Project !!!
Possible that the trash page is empty and I have lost all my project with a click ?
https://script.google.com/home/trash
When deleting a project you get an alert adverting you of it.
As mentioned on it, if you have deleted the file, is gone forever.

google spreadsheet script editor: delete a project

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.

How do I restore revoked permissions on a google-apps-script?

I mistakenly revoked permissions on a google-apps-script that ran on a time trigger on a google spreadsheet from here: https://myaccount.google.com/permissions . I now receive an email that the script fails to run. Going to the spreadsheet and editing the script fails to bring up the script, presumably because of the lack of permissions, but no error is shown, just a blank script editor. I am able to see the trigger to the script (here: https://script.google.com/macros/triggers?id=some_id ), but I am not able to get to the script.
How can I restore or reinstate the permissions to this script?
Or how can I get the code to this script? Where is it stored?
If you simply revoked permissions it will not remove the actual script/coding. So it may not be attached to the spreadsheet you are opening. Perhaps you are opening the wrong spreadsheet, or it is a standalone- If you type type:script into your google drive search it will show all scripts that are not bound to a spreadsheet.
As far as restoring you will just want to run it, once you find it.
I was successful. I'm not sure what did it but: previously I was not able to view the script, looking at the revision history doesn't allow me to get access to the menu and thus I was not able to get at older versions of the script. But making a copy of the spreadsheet then allowed me to view the script again, both in the original and copy of the spreadsheet. Running the script then requests for permission, restoring the permissions!
I really don't know if the lack of access to the script was a temporary condition or required that I make a copy of the spreadsheet, but this was the sequence of events that worked for me.
Thank you #OblongMedulla for making the suggestions.
You can simply go to your Google Profile - Manage Your Google Account - Security - Third Party Apps and revoke the permissions. If you want to use the app again, you'll have to run the script again from appscript and grant the permissions.

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.

Deleted script, no triggers, still getting emails

I deleted a google apps script from docs (Gmail Snooze), but I keep getting a message every day:
Start Function Error Message Trigger
6/9/12 12:49 AM myFunction We're sorry, a server error time-based
occurred. Please wait a
bit and try again.
I've already tried creating a new script, going to Resources > All Your Triggers, and nothing is there.
Is there a better way to get rid of these error messages than creating a new filter in gmail to auto delete them?
Have you also tried deleting the spreadsheet from the Trash in Google Docs?
There have been some reported problems around deleting triggers. You may want to add a comment on this open issue.
This worked for me!
Open a spreadsheet then go to tools-spreadsheet editor, then on the
editor window go to Resources->All your triggers... and see if the
trigger is still listed there. If so, delete it.
Source: How to delete a google apps script service
There might be an update to the interface. Triggers are now accessible trough different menu.
Open script.google.com and open any project or create a new one if you don't have any projects. Then go to Edit>All your triggers and switch off the ones you don't need.