# EC1-413 - API & Rules Delete Mechanism Catalogue Segmentation
## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I shouldnt be able to hit delete segmentation with wrong param
Given the user has logged in as Admin
When the user input alhpabet as param
And the user hit delete segmentation
Then show error message
```
#### Test Scenario 2
```gherkin
Scenario: As an Admin, I shouldnt be able to hit delete segmentation with non-existent param
Given the user has logged in as Admin
When the user input blank for param
And the user hit delete segmentation
Then show error message
```
#### Test Scenario 3
```gherkin
Scenario: As an Admin, I want to delete a catalogue segmentation
Given the user has logged in as Admin
When the user input segmentation <A> id as param
And the user hit delete segmentation
Then segmentation <A> successfully deleted
```
#### Test Scenario 4
```gherkin
Scenario: As an Admin, I shouldn't be able to see deleted catalogue segmentation in DB
Given the user has logged in as Admin
And the user has deleted segmentation <A>
When the user check DB for table warehouse_catalogue_segmentation
Then doesn't show segmentation <A> inside the table
```
###### tags: `Sprint 24` `Ecommerce 1` `SSC`