# Delete job preset criterion by ID

`DELETE /api/job-preset/criterion/{criterionId}`

Authentication: no security requirement declared for this operation.

Parameters:

- `criterionId` (path, string, required)
  Type: string

Responses:

- 200: Job preset criterion deleted successfully

Content type: application/json

Type: object

Schema: [JobPreset](https://sourcey-gauzy.pages.dev/api-reference/models/jobpreset/index.md)

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `name` (required)
  Type: string

- 404: Job preset criterion not found

## Examples

### cURL

```bash
curl -X DELETE 'http://localhost:3000/api/job-preset/criterion/string'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/job-preset/criterion/string', {
  method: 'DELETE',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.delete('http://localhost:3000/api/job-preset/criterion/string')
print(response.text)
```
