# 22. Virtuoso Functions Guide - file_unlink

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
file_delete
file_dirlist
file_mkdir
file_mkpath
file_stat
file_to_string
file_to_string_outpu...
file_unlink
os_chmod
os_chown
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## file_unlink

Delete a file from the file system
file_unlink (in path varchar);
Description

This function requires dba privileges.

This function deletes a file from the file system. sys_unlink is a synonum of this function.

Parameters
path – Path name of the file to delete.
Return Types

On success returns zero. Otherwise signalls an error.

Errors

SQLState | Error Code | Error Text | Description
--- | --- | --- | ---
42000 | FA003 | Access to %s is denied due to access control in ini file |
42000 | FA004 | Access to %s is denied due to access control in ini file |
42000 | SR426 | Permission is denied for the file '%s' in sys_unlink() |
42000 | SR427 | Path name '%s' too long in sys_unlink() |
42000 | SR428 | A directory component in '%s' does not exist or is a dangling symbolic link in sys_unlink() |
42000 | SR429 | A component used as a directory in '%s' is not, in fact, a directory in sys_unlink() |
42000 | SR430 | '%s' refers to a directory in sys_unlink() |
42000 | SR431 | Insufficient kernel memory was available in sys_unlink() |
42000 | SR432 | '%s' refers to a file on a read-only filesystem in sys_unlink() |
42000 | SR433 | Too many symbolic links were encountered in translating '%s' in sys_unlink() |
42000 | SR434 | An I/O error occurred in sys_unlink() |

See Also

file_delete file_mkdir file_mkpath file_stat