summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/commands.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 330920cf..b283a71b 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -500,13 +500,9 @@ class delete(Command):
 	allow_abbrev = False
 
 	def execute(self):
-		lastword = self.arg(-1)
-
-		if lastword.startswith('y'):
-			# user confirmed deletion!
-			return self.fm.delete()
-		elif self.line.startswith(DELETE_WARNING):
-			# user did not confirm deletion
+		if self.rest(1):
+			self.fm.notify("Error: delete takes no arguments! It deletes "
+					"the selected file(s).", bad=True)
 			return
 
 		cwd = self.fm.thisdir