> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/prototype-helpers/.delete.md).

# string.delete

> ⚠️ **Not a string method.** `.delete()` works only on arrays and objects. See [arrays/.delete.md](https://github.com/Mistium/OSL-Docs/blob/main/methods/arrays/.delete.md) and [objects/.delete.md](https://github.com/Mistium/OSL-Docs/blob/main/methods/objects/.delete.md).

## Description

Delete is a method that deletes an index from a string

## Parameters

Delete takes the index to delete as a parameter.

## Usage On Strings

```javascript
str = "helllo world"
// setup the string

log str.delete(4)
// returns the string but with the 4th character deleted: "hello world"
```
