```php
<?php

require_once '../../core/api_bootstrap.php';
require_once '../../services/crud_service.php';

$data=Request::post();

Validator::required($data,['id']);

$db=new Database();
$conn=$db->connect();

$crud=new CrudService($conn);

$crud->softDelete('states',$data['id']);

Response::success([],"State deleted");