# Slice machine wants to delete types after version update

**URL:** https://community.prismic.io/t/slice-machine-wants-to-delete-types-after-version-update/15614
**Category:** Developing with Prismic
**Tags:** slice-machine
**Created:** [April 2, 2024, 12:00pm UTC](https://community.prismic.io/t/slice-machine-wants-to-delete-types-after-version-update/15614 "2024-04-02T12:00:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anu](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anu](https://community.prismic.io/u/anu)
#### Post date: [April 2, 2024, 12:00pm UTC](https://community.prismic.io/t/slice-machine-wants-to-delete-types-after-version-update/15614/1 "2024-04-02T12:00:22Z")

</div>

I am updating the slice machine version from 0.0.46 to 1.26.0 but getting an issue where the custom types are getting deleted.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/1/129edb5785e895b4706b9467c985674644855cb2.png)

How can I sort this issue? Can I get to any other older version instead of 1.26.0 to sort this issue?

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [April 3, 2024, 1:48pm UTC](https://community.prismic.io/t/slice-machine-wants-to-delete-types-after-version-update/15614/2 "2024-04-03T13:48:58Z")

</div>

Hi @anu ,

I think what's happening here is that you'll need to have a Custom Types folder with all your types, like shown here:

> **[nextjs-starter-prismic-multi-page/customtypes at master ·...](https://github.com/prismicio-community/nextjs-starter-prismic-multi-page/tree/master/customtypes)**
>
> Next.js and Prismic multi-page starter. Contribute to prismicio-community/nextjs-starter-prismic-multi-page development by creating an account on GitHub.

Slice Machine is checking the difference between your local project and what you have in Prismic. It sees no local files, so it suggests deleting the Custom Types in Prismic, as if they have been removed locally.

**You will need to create the files locally by copying and pasting the Custom Type JSON into local files like in the sample project.**

This guide might also help.

> **[slice-machine-ui v1.0 Migration Guide](https://prismic.io/docs/slice-machine-ui-1.0-migration-guide)**
>
> Upgrade from slice-machine-ui v0.7 to v1.0.

---

<div class="post-metadata">

### Author: ![anu](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anu](https://community.prismic.io/u/anu)
#### Post date: [April 4, 2024, 8:16am UTC](https://community.prismic.io/t/slice-machine-wants-to-delete-types-after-version-update/15614/3 "2024-04-04T08:16:44Z")

</div>

Thanks for the solution. I have tried the same and it seems to be working.
