Put something like this in your file:
from fabric.context_managers import settings
def task_name():
...
with settings(warn_only=True):
...
clean_up()
You might even want to give the whole treatment goal warn_only=Trueif you don't care:
@with_settings(warn_only=True)
def task_name():
...
( more details )
source
share