script for deleting ifds