---
acl_categories:
- '@write'
- '@slow'
- '@scripting'
arguments:
- display_text: library-name
name: library-name
type: string
arity: 3
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
command_flags:
- write
- noscript
complexity: O(1)
description: Deletes a library and its functions.
group: scripting
hidden: false
hints:
- request_policy:all_shards
- response_policy:all_succeeded
linkTitle: FUNCTION DELETE
railroad_diagram: /images/railroad/function-delete.svg
since: 7.0.0
summary: Deletes a library and its functions.
syntax_fmt: FUNCTION DELETE library-name
title: FUNCTION DELETE
---
Delete a library and all its functions.
This command deletes the library called _library-name_ and all functions in it.
If the library doesn't exist, the server returns an error.
For more information please refer to [Introduction to Redis Functions]({{< relref "/develop/programmability/functions-intro" >}}).
## Examples
```
redis> FUNCTION LOAD "#!lua name=mylib \n redis.register_function('myfunc', function(keys, args) return 'hello' end)"
"mylib"
redis> FCALL myfunc 0
"hello"
redis> FUNCTION DELETE mylib
OK
redis> FCALL myfunc 0
(error) ERR Function not found
```
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis
Cloud | Notes |
|:----------------------|:-----------------|:------|
| ✅ Standard
✅ Active-Active | ✅ Standard
✅ Active-Active | |
## Return information
{{< multitabs id="function-delete-return-info"
tab1="RESP2"
tab2="RESP3" >}}
[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK`.
-tab-sep-
[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK`.
{{< /multitabs >}}