omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Delete file?

    Editorial
    2
    2
    2165
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WyldKard
      WyldKard last edited by

      It's easy to create a new file using workflows, but is there any way to delete a file locally or in Dropbox?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        Deleting local files is relatively easy via Python (e.g. os.remove(os.path.expanduser('~/Documents/myfile.txt')), but deleting Dropbox files isn't really possible, at least not without pretty significant effort (using the Dropbox API).

        Btw, if you want to delete a local file that is currently open, you should open a different file first; otherwise, the editor would automatically save a new file.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors