Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
google-cloud-sdk /
lib /
surface /
run /
jobs /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
executions
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
logs
[ DIR ]
drwxr-xr-x
2026-06-08 18:08
__init__.py
1.62
KB
-rw-r--r--
1980-01-01 08:00
add_iam_policy_binding.yaml
1.28
KB
-rw-r--r--
1980-01-01 08:00
create.py
9.62
KB
-rw-r--r--
1980-01-01 08:00
delete.py
3.58
KB
-rw-r--r--
1980-01-01 08:00
deploy.py
14.15
KB
-rw-r--r--
1980-01-01 08:00
describe.py
3.04
KB
-rw-r--r--
1980-01-01 08:00
execute.py
7.4
KB
-rw-r--r--
1980-01-01 08:00
get_iam_policy.yaml
1.2
KB
-rw-r--r--
1980-01-01 08:00
list.py
3.89
KB
-rw-r--r--
1980-01-01 08:00
remove_iam_policy_binding.yaml
1.29
KB
-rw-r--r--
1980-01-01 08:00
replace.py
8.01
KB
-rw-r--r--
1980-01-01 08:00
set_iam_policy.yaml
1.57
KB
-rw-r--r--
1980-01-01 08:00
ssh.py
1.68
KB
-rw-r--r--
1980-01-01 08:00
update.py
8.67
KB
-rw-r--r--
1980-01-01 08:00
Save
Rename
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Command for deleting jobs.""" import copy from googlecloudsdk.api_lib.run import execution from googlecloudsdk.calliope import base from googlecloudsdk.command_lib.run import connection_context from googlecloudsdk.command_lib.run import deletion from googlecloudsdk.command_lib.run import flags from googlecloudsdk.command_lib.run import pretty_print from googlecloudsdk.command_lib.run import resource_args from googlecloudsdk.command_lib.run import serverless_operations from googlecloudsdk.command_lib.util.concepts import concept_parsers from googlecloudsdk.command_lib.util.concepts import presentation_specs from googlecloudsdk.core import log from googlecloudsdk.core.console import console_io @base.UniverseCompatible @base.ReleaseTracks(base.ReleaseTrack.GA) class Delete(base.Command): """Delete a job.""" detailed_help = { 'DESCRIPTION': ( """ {description} """ ), 'EXAMPLES': ( """ To delete a job: $ {command} job-name """ ), } @staticmethod def CommonArgs(parser): job_presentation = presentation_specs.ResourcePresentationSpec( 'JOB', resource_args.GetJobResourceSpec(), 'Job to delete.', required=True, prefixes=False, ) flags.AddAsyncFlag(parser, default_async_for_cluster=True) concept_parsers.ConceptParser([job_presentation]).AddToParser(parser) @staticmethod def Args(parser): Delete.CommonArgs(parser) def Run(self, args): """Delete a job.""" conn_context = connection_context.GetConnectionContext( args, flags.Product.RUN, self.ReleaseTrack() ) job_ref = args.CONCEPTS.job.Parse() with serverless_operations.Connect(conn_context) as client: message = 'Job [{}] will be deleted.'.format(job_ref.jobsId) if console_io.CanPrompt() and self.HasRunningExecutions(job_ref, client): message += ( ' This job is currently executing; all running executions will be' ' stopped and deleted.' ) console_io.PromptContinue( message=message, throw_if_unattended=True, cancel_on_no=True, ) deletion.Delete(job_ref, client.GetJob, client.DeleteJob, args.async_) if args.async_: pretty_print.Success('Job [{}] is being deleted.'.format(job_ref.jobsId)) else: log.DeletedResource(job_ref.jobsId, 'job') def HasRunningExecutions(self, job_ref, client): # gcloud-disable-gdu-domain label_selector = ( '{label} = {name}, run.googleapis.com/servingState = Active'.format( label=execution.JOB_LABEL, name=job_ref.jobsId ) ) for _ in client.ListExecutions( job_ref.Parent(), label_selector, limit=1, page_size=1 ): return True return False @base.ReleaseTracks(base.ReleaseTrack.BETA, base.ReleaseTrack.ALPHA) @base.RegionalEndpointsSupported class BetaDelete(Delete): """Delete a job.""" detailed_help = copy.deepcopy(Delete.detailed_help)