> For the complete documentation index, see [llms.txt](https://docs.dataloy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataloy.com/release-8.31/voyage-management-system/step-by-step-guides/operations/laytime-calculations/delete-laytime-calculation.md).

# Delete Laytime Calculation

From version 6.39 users with the **Laytime Contributor** role have the option to delete Laytime Calculations.\
Deleting a Laytime Calcluation will run the Voyage business logic and re calculate things that have been changed by the Laytime Calculation.\
\
• Please notice that Fixed demurrage and Fixed Dispatch that were added in the laytime to all connected ports would **NOT** be deleted from the ports after the laytime was removed! \
\
To delete a Laytime Calculation you must first access the laytime calculation drawer, you can go about this in 2 ways:\
1\. Open the Voyage drawer that the Laytime Calculation is connected to -> Click on the Related tab -> Pick the Laytime Calculation you desire to delete from the Laytime Calculations list.\
2\. In the main VMS menu click on Operations -> Laytime Calculations -> Either use the quick filters to find the relevant Laytime Calculation or pick it out from the list.\
\
Once you are in the Laytime Calculation drawer you will see a new button was added:<br>

<figure><img src="https://content.gitbook.com/content/zjy4yJFZRJooU1EGrLs5/blobs/vYegKeIdDtjzZslPcTVo/image.png" alt=""><figcaption><p>Laytime Calculation deletion button</p></figcaption></figure>

When clicking on the button you will be prompt to confirm/cancel the deletion, if there are any ports connected to the Laytime Calculation a notice will appear about it in the deletion modal:<br>

<figure><img src="https://content.gitbook.com/content/zjy4yJFZRJooU1EGrLs5/blobs/7rM70TpdWN0KWj1ICP2r/image.png" alt=""><figcaption><p>Confirm/ Laytime Calculation deletion modal</p></figcaption></figure>

Once you confirm all Laytime Events will be removed and only the events connected to Port Calls / Cargo Ports will remain and the Business Logic for Voyage would be run to re-calculate changed to the Voyage.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dataloy.com/release-8.31/voyage-management-system/step-by-step-guides/operations/laytime-calculations/delete-laytime-calculation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
