---
name: "removeAstronomical"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.5.2" }
title: "removeAstronomical - Delete Astronomical Timer"
---

## removeAstronomical

> [VERSION] @ray-js/ray >= 1.5.2

### Description

Delete astronomical timer

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `IRemoveAstronomicalParams` | Yes | Request parameters |

### Return Value

Type: `Promise<boolean>`

Whether the astronomical timer was deleted successfully

### Referenced Types

##### `interface` IRemoveAstronomicalParams

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` | Astronomical schedule ID |


### Examples

#### Basic usage

```ts
import { removeAstronomical } from '@ray-js/ray';

removeAstronomical({ id: '8642566' }).then((response) => {
  console.log('Delete result:', response);
}).catch((err) => {
  console.error(err);
});
```
