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

Delete appscript project via the python api client #2015

Open
w1redch4d opened this issue Dec 29, 2022 · 0 comments
Open

Delete appscript project via the python api client #2015

w1redch4d opened this issue Dec 29, 2022 · 0 comments

Comments

@w1redch4d
Copy link

w1redch4d commented Dec 29, 2022

Is your feature request related to a problem? Please describe.

It would be better if we had an option to delete appscript projects using the python api client with the script service, rather than having to use a separate service like gdrive to remove the file

Describe the solution you'd like

for now what we do for creating a project is the following :

service = build('script', 'v1', credentials=creds)
request = {'title': 'My Project'}
service.projects().create(body=request).execute()

I would like a similar functionality to delete the script project which is created using the above code
an example of what i want would look like:

service = build('script', 'v1', credentials=creds)
request = {'title': 'My Project'}
service.projects().delete(body=request).execute()

Describe alternatives you've considered

script = build('script', 'v1', credentials=creds)
drive = build('drive', 'v3', credentials=creds)

request = {'title': 'My Project'}
response = service.projects().create(body=request).execute()

drive.files().delete(fileId=response['scriptId']).execute()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant