> For the complete documentation index, see [llms.txt](https://ninjapay.gitbook.io/ninjapay-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjapay.gitbook.io/ninjapay-api-docs/how-to/api-reference-upi/plugins/point-of-sale-pos/remove-pos.md).

# Remove POS

This endpoint is used to remove the POS&#x20;

#### **Method**

```
DELETE https://api.ninjapay.me/webextension/api/v1/fiat/upos
```

#### **Parameter**

**`pos_id:`** `(string, required)` // The ID of  POS to be deleted.

#### Request body

```javascript
Body (application/json)
{
    "pos_id":"POS99d445ba9bf92dcc" //REQUIRED POS ID
}
```

#### **Response**

```json
{
    "status":true,
    "data":{},
    "message":"POS removed successfully"
}
```

#### **Code Example**

```jsx

const options = {
  method: 'DELETE',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY' 
  },
  body: {
    "pos_id":"POS99d445ba9bf92dcc"
}
};

fetch('https://api.ninjapay.me/webextension/api/v1/fiat/upos', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  
```

**`200 OK`**

The request was successful, and the POS has been deleted.

**`400 Bad Request`**

The request was malformed or missing required parameters.

**`401 Unauthorized`**

Authentication failed or the user does not have permission to delete the POS.

**`404 Not Found`**

The POS ID provided does not exist.

**`500 Internal Server Error`**

An error occurred on the server.
