def delete(to_delete):
if os.path.isfile(to_delete):<EOL><INDENT>os.remove(to_delete)<EOL><DEDENT>elif os.path.isdir(to_delete):<EOL><INDENT>shutil.rmtree(to_delete)<EOL><DEDENT>
Unified "strong" version of delete (remove) for files and directories.

Unified "strong" version of delete that uses `os.remove` for a file and 
`shutil.rmtree` for a directory tree.

**Parameters**

    **to_delete** :  string

        Path to a file or directory.

**See Also:**

    `os <http://docs.python.org/library/os.html>`_, 
    `shutil <http://docs.python.org/library/shutil.html>`_