---
name: "removeAstronomical"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.5.2" }
title: "removeAstronomical - 删除天文定时"
---

## removeAstronomical

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

### 描述

删除天文定时

### 参数

`Params`

| 参数 | 类型 | 必填 | 描述 |
| --- | --- | --- | --- |
| `params` | `IRemoveAstronomicalParams` | 是 | 请求参数 |

### 返回值

类型: `Promise<boolean>`

是否成功删除天文定时

### 引用对象

##### `interface` IRemoveAstronomicalParams

| 属性 | 类型 | 描述 |
| --- | --- | --- |
| `id` | `string` | 天文定时 ID |


### 示例代码

#### 基础用法

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

removeAstronomical({ id: '8642566' }).then((response) => {
  console.log('删除结果:', response);
}).catch((err) => {
  console.error(err);
});
```
