Directly use trash-put instead of rm in functions