Fix autoremove (and remove) requests.

Issue:	#1705
Reported by:	@andrejzverev