delete URL | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Synonyms | clear url | ||||||
Associations | internet library | ||||||
Summary | Removes a file or directory from a server, or removes a file from your system. | ||||||
Introduced | 1.1 | ||||||
OS | mac, windows, linux, ios, android, web | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Message: startup, openBackground, preOpenStack, openStack, preOpenCard Library: put, library, Internet library Keyword: binfile, ftp, file, URL, http Control Structure: function Function: result Command: libURLSetFTPStopTime, post, delete file, delete folder Glossary: LiveCode custom library, application, standalone application, statement, blocking, Standalone Application Settings, command, expression, main stack, group, local file, server, upload, folder, message, handler | ||||||
Security | network | ||||||
Description | Use the delete URL command to remove a file. You can use a file or binfile URL to delete a file, but not a folder. To remove a folder from your system, use the delete folder command. (You can also use the delete file command to delete a local file.) This command can also be used to remove files and directories your stack did not create. Of course, a stack should not remove data it didn't create without obtaining explicit confirmation from the user. Normally, FTP servers do not allow anonymous users to delete files, for obvious reasons. This means that while an ftp URL without a user name and password is valid, you will almost always need a user name and password to use the delete URL command.
*Cross-platform note:* On iOS and Android, delete URL is implemented in the engine. Therefore the Internet library is not needed to ensure the command works in a mobile standalone application. If included, the Internet library implementation will be used instead of the engine implementation. Cross-platform note: The Web engine only supports HTTP and HTTPs protocols. Cross-platform note: URLs fetched by the Web engine from a domain other than that of the hosting the page may be blocked by web browsers, unless the server hosting the URL sets the "Access-Control-Origin" header appropriately. | ||||||
Tags | networking |