> For the complete documentation index, see [llms.txt](https://upsolver.gitbook.io/content/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://upsolver.gitbook.io/content/reference-1/sql-commands/jobs/drop-job.md).

# DROP JOB

## Syntax

SQL syntax to drop a job in Upsolver.

```sql
DROP JOB [ IF EXISTS ] <job_name>;
```

#### `IF EXISTS`&#x20;

(Optional) To prevent the Upsolver query engine from returning an error if the job does not exist, include `IF EXISTS` in your `DROP` statement; instead, you will see the message **Operation resulted in no change**.&#x20;

### Dropping a replication job that has sub-jobs

When you create a [replication job](/content/reference-1/sql-commands/jobs/create-job/replication.md), a sub-job is created to replicate the data, and a sub-job is created for each replication group. This is also applicable if you created a [parent script](/content/how-to-guides-1/jobs/database-replication/replicate-cdc-data-into-snowflake.md) to generate sub-jobs to replicate your data.

You cannot delete individual sub-jobs, instead, you use the `DROP JOB` command to drop the master job and all sub-jobs.

## Example

The following example runs a `DROP` statement with `IF EXISTS` to drop the job, **ingest\_sales\_data**. By including `IF EXISTS`, an error is not encountered if the job does not exist. Otherwise, if the job exists, it will be dropped from the organization:&#x20;

```sql
DROP JOB IF EXISTS "ingest_sales_data";
```

## Drop a job using the UI

You can also drop a job from the **Jobs** page in the UI. Hover over the **three-dots menu** on the job you want to drop, and select **Drop Job**:

<figure><img src="/files/AzfwyOpFuq1RJDyJxDeG" alt=""><figcaption><p>Drop a job from the Jobs page</p></figcaption></figure>

You will then be presented with a modal window asking you to confirm if you want to drop the job and all associated metadata and logs. The window also presents you with the SQL syntax for dropping the job, should you wish to copy and paste this into a worksheet to run the statement manually.&#x20;

Click **Drop Job** to continue, and the job status will refresh and display **Deleting**. Alternatively, click **Cancel** to exit without dropping the job.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://upsolver.gitbook.io/content/reference-1/sql-commands/jobs/drop-job.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
