{"id":12520,"date":"2021-11-27T07:55:11","date_gmt":"2021-11-27T07:55:11","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=12520"},"modified":"2021-11-30T09:35:51","modified_gmt":"2021-11-30T09:35:51","slug":"disable-trash-option-default-directadmin-file-manager","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/","title":{"rendered":"How to Disable the Trash Option by Default for DirectAdmin File Manager?"},"content":{"rendered":"<p>When deleting a file using FileManager, the confirmation window will show an option &#8220;<em>Trash.<\/em>&#8221; This option is always enabled by default. But, there is a way where you can change the default setting to disable the Trash option for DirectAdmin File Manager.<\/p>\n<p>This feature is available because of a new internal directadmin.conf value:<\/p>\n<pre class=\"lang:default decode:true \">fm_to_trash_default=1<\/pre>\n<p>It is the reason why the <strong>Trash<\/strong> option is enabled by default.<\/p>\n<h2>To Disable the Trash Option by Default<\/h2>\n<p>1. Log in to DirectAdmin via SSH access.<\/p>\n<p>2. Run this command:<\/p>\n<pre class=\"lang:default decode:true \">\/usr\/local\/directadmin\/directadmin set fm_to_trash_default 0<\/pre>\n<p>It will set the value to <strong><em>0\u00a0<\/em><\/strong>which in turn disables the <em>Trash<\/em> button as a default.<\/p>\n<p>3. Restart the DirectAdmin service to apply the changes.<\/p>\n<p>It is that simple to change settings and disable the Trash option of DirectAdmin File Manager as default.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When deleting a file using FileManager, the confirmation window will show an option &#8220;Trash.&#8221; This option is always enabled by default. But, there is a way where you can change the default setting to disable the Trash option for DirectAdmin File Manager. This feature is available because of a new internal directadmin.conf value: fm_to_trash_default=1 It [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1777,41],"tags":[2536,2738,2183,1179,2486,1448,312],"class_list":["post-12520","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-directadmin","category-howtos","tag-directadmin-file-manager","tag-disable-trash-directadmin-file-manager","tag-file-manager-settings","tag-ssh-access","tag-ssh-access-user-directadmin","tag-ssh-commands","tag-trash"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Disable the Trash Option by Default for DirectAdmin File Manager?<\/title>\n<meta name=\"description\" content=\"This article is for users with SSH access to the DirectAdmin server and shows how to disable the Trash option in File Manager.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Disable the Trash Option by Default for DirectAdmin File Manager?\" \/>\n<meta property=\"og:description\" content=\"This article is for users with SSH access to the DirectAdmin server and shows how to disable the Trash option in File Manager.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-27T07:55:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-30T09:35:51+00:00\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/\",\"name\":\"How to Disable the Trash Option by Default for DirectAdmin File Manager?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2021-11-27T07:55:11+00:00\",\"dateModified\":\"2021-11-30T09:35:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"This article is for users with SSH access to the DirectAdmin server and shows how to disable the Trash option in File Manager.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Disable the Trash Option by Default for DirectAdmin File Manager?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Disable the Trash Option by Default for DirectAdmin File Manager?","description":"This article is for users with SSH access to the DirectAdmin server and shows how to disable the Trash option in File Manager.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/","og_locale":"en_GB","og_type":"article","og_title":"How to Disable the Trash Option by Default for DirectAdmin File Manager?","og_description":"This article is for users with SSH access to the DirectAdmin server and shows how to disable the Trash option in File Manager.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-11-27T07:55:11+00:00","article_modified_time":"2021-11-30T09:35:51+00:00","author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/","name":"How to Disable the Trash Option by Default for DirectAdmin File Manager?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2021-11-27T07:55:11+00:00","dateModified":"2021-11-30T09:35:51+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"This article is for users with SSH access to the DirectAdmin server and shows how to disable the Trash option in File Manager.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-trash-option-default-directadmin-file-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Disable the Trash Option by Default for DirectAdmin File Manager?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":305,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=12520"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12520\/revisions"}],"predecessor-version":[{"id":12536,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12520\/revisions\/12536"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=12520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=12520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=12520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}